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

            if (Dtype != 0)
            {
                hash ^= Dtype.GetHashCode();
            }
            if (tensorShape_ != null)
            {
                hash ^= TensorShape.GetHashCode();
            }
            if (VersionNumber != 0)
            {
                hash ^= VersionNumber.GetHashCode();
            }
            if (TensorContent.Length != 0)
            {
                hash ^= TensorContent.GetHashCode();
            }
            hash ^= halfVal_.GetHashCode();
            hash ^= floatVal_.GetHashCode();
            hash ^= doubleVal_.GetHashCode();
            hash ^= intVal_.GetHashCode();
            hash ^= stringVal_.GetHashCode();
            hash ^= scomplexVal_.GetHashCode();
            hash ^= int64Val_.GetHashCode();
            hash ^= boolVal_.GetHashCode();
            hash ^= dcomplexVal_.GetHashCode();
            hash ^= resourceHandleVal_.GetHashCode();
            hash ^= variantVal_.GetHashCode();
            hash ^= uint32Val_.GetHashCode();
            hash ^= uint64Val_.GetHashCode();
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Dtype != global::Tensorflow.DataType.DtInvalid)
            {
                hash ^= Dtype.GetHashCode();
            }
            if (tensorShape_ != null)
            {
                hash ^= TensorShape.GetHashCode();
            }
            if (VersionNumber != 0)
            {
                hash ^= VersionNumber.GetHashCode();
            }
            if (TensorContent.Length != 0)
            {
                hash ^= TensorContent.GetHashCode();
            }
            hash ^= halfVal_.GetHashCode();
            hash ^= floatVal_.GetHashCode();
            hash ^= doubleVal_.GetHashCode();
            hash ^= intVal_.GetHashCode();
            hash ^= stringVal_.GetHashCode();
            hash ^= scomplexVal_.GetHashCode();
            hash ^= int64Val_.GetHashCode();
            hash ^= boolVal_.GetHashCode();
            hash ^= dcomplexVal_.GetHashCode();
            hash ^= resourceHandleVal_.GetHashCode();
            hash ^= variantVal_.GetHashCode();
            hash ^= uint32Val_.GetHashCode();
            hash ^= uint64Val_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (VersionNumber != 0L)
            {
                hash ^= VersionNumber.GetHashCode();
            }
            if (updateTime_ != null)
            {
                hash ^= UpdateTime.GetHashCode();
            }
            if (updateUser_ != null)
            {
                hash ^= UpdateUser.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (UpdateOrigin != global::Google.Events.Protobuf.Firebase.RemoteConfig.V1.RemoteConfigUpdateOrigin.Unspecified)
            {
                hash ^= UpdateOrigin.GetHashCode();
            }
            if (UpdateType != global::Google.Events.Protobuf.Firebase.RemoteConfig.V1.RemoteConfigUpdateType.Unspecified)
            {
                hash ^= UpdateType.GetHashCode();
            }
            if (RollbackSource != 0L)
            {
                hash ^= RollbackSource.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 4
0
 public override int GetHashCode()
 {
     return(_name.GetHashCode() ^ _version.GetHashCode());
 }