Exemple #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LayerInputDim != 0)
            {
                hash ^= LayerInputDim.GetHashCode();
            }
            if (LayerOutputDim != 0)
            {
                hash ^= LayerOutputDim.GetHashCode();
            }
            if (layerInputWeight_ != null)
            {
                hash ^= LayerInputWeight.GetHashCode();
            }
            if (layerBias_ != null)
            {
                hash ^= LayerBias.GetHashCode();
            }
            if (LayerActivationFunc != 0)
            {
                hash ^= LayerActivationFunc.GetHashCode();
            }
            return(hash);
        }