Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (VariableName.Length != 0)
            {
                hash ^= VariableName.GetHashCode();
            }
            if (InitialValueName.Length != 0)
            {
                hash ^= InitialValueName.GetHashCode();
            }
            if (InitializerName.Length != 0)
            {
                hash ^= InitializerName.GetHashCode();
            }
            if (SnapshotName.Length != 0)
            {
                hash ^= SnapshotName.GetHashCode();
            }
            if (saveSliceInfoDef_ != null)
            {
                hash ^= SaveSliceInfoDef.GetHashCode();
            }
            if (IsResource != false)
            {
                hash ^= IsResource.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (VariableName.Length != 0)
            {
                hash ^= VariableName.GetHashCode();
            }
            if (InitialValueName.Length != 0)
            {
                hash ^= InitialValueName.GetHashCode();
            }
            if (InitializerName.Length != 0)
            {
                hash ^= InitializerName.GetHashCode();
            }
            if (SnapshotName.Length != 0)
            {
                hash ^= SnapshotName.GetHashCode();
            }
            if (saveSliceInfoDef_ != null)
            {
                hash ^= SaveSliceInfoDef.GetHashCode();
            }
            if (IsResource != false)
            {
                hash ^= IsResource.GetHashCode();
            }
            if (Trainable != false)
            {
                hash ^= Trainable.GetHashCode();
            }
            if (Synchronization != global::Tensorflow.VariableSynchronization.Auto)
            {
                hash ^= Synchronization.GetHashCode();
            }
            if (Aggregation != global::Tensorflow.VariableAggregation.None)
            {
                hash ^= Aggregation.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }