Exemple #1
0
        public void MergeFrom(Feature other)
        {
            if (other == null)
            {
                return;
            }
            switch (other.KindCase)
            {
            case KindOneofCase.BytesList:
                if (BytesList == null)
                {
                    BytesList = new global::Tensorflow.BytesList();
                }
                BytesList.MergeFrom(other.BytesList);
                break;

            case KindOneofCase.FloatList:
                if (FloatList == null)
                {
                    FloatList = new global::Tensorflow.FloatList();
                }
                FloatList.MergeFrom(other.FloatList);
                break;

            case KindOneofCase.Int64List:
                if (Int64List == null)
                {
                    Int64List = new global::Tensorflow.Int64List();
                }
                Int64List.MergeFrom(other.Int64List);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.BytesList)
            {
                hash ^= BytesList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.FloatList)
            {
                hash ^= FloatList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.Int64List)
            {
                hash ^= Int64List.GetHashCode();
            }
            hash ^= (int)kindCase_;
            return(hash);
        }
Exemple #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (kindCase_ == KindOneofCase.BytesList)
            {
                hash ^= BytesList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.FloatList)
            {
                hash ^= FloatList.GetHashCode();
            }
            if (kindCase_ == KindOneofCase.Int64List)
            {
                hash ^= Int64List.GetHashCode();
            }
            hash ^= (int)kindCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }