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);
        }