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

            if (FilenameTensorName.Length != 0)
            {
                hash ^= FilenameTensorName.GetHashCode();
            }
            if (SaveTensorName.Length != 0)
            {
                hash ^= SaveTensorName.GetHashCode();
            }
            if (RestoreOpName.Length != 0)
            {
                hash ^= RestoreOpName.GetHashCode();
            }
            if (MaxToKeep != 0)
            {
                hash ^= MaxToKeep.GetHashCode();
            }
            if (Sharded != false)
            {
                hash ^= Sharded.GetHashCode();
            }
            if (KeepCheckpointEveryNHours != 0F)
            {
                hash ^= KeepCheckpointEveryNHours.GetHashCode();
            }
            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FilenameTensorName.Length != 0)
            {
                hash ^= FilenameTensorName.GetHashCode();
            }
            if (SaveTensorName.Length != 0)
            {
                hash ^= SaveTensorName.GetHashCode();
            }
            if (RestoreOpName.Length != 0)
            {
                hash ^= RestoreOpName.GetHashCode();
            }
            if (MaxToKeep != 0)
            {
                hash ^= MaxToKeep.GetHashCode();
            }
            if (Sharded != false)
            {
                hash ^= Sharded.GetHashCode();
            }
            if (KeepCheckpointEveryNHours != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KeepCheckpointEveryNHours);
            }
            if (Version != 0)
            {
                hash ^= Version.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }