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

            hash ^= shape_.GetHashCode();
            if (CompressionType != 0)
            {
                hash ^= CompressionType.GetHashCode();
            }
            if (observationDataCase_ == ObservationDataOneofCase.CompressedData)
            {
                hash ^= CompressedData.GetHashCode();
            }
            if (observationDataCase_ == ObservationDataOneofCase.FloatData)
            {
                hash ^= FloatData.GetHashCode();
            }
            hash ^= compressedChannelMapping_.GetHashCode();
            hash ^= dimensionProperties_.GetHashCode();
            if (ObservationType != 0)
            {
                hash ^= ObservationType.GetHashCode();
            }
            hash ^= (int)observationDataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            hash ^= shape_.GetHashCode();
            if (CompressionType != global::MLAgents.CommunicatorObjects.CompressionTypeProto.None)
            {
                hash ^= CompressionType.GetHashCode();
            }
            if (observationDataCase_ == ObservationDataOneofCase.CompressedData)
            {
                hash ^= CompressedData.GetHashCode();
            }
            if (observationDataCase_ == ObservationDataOneofCase.FloatData)
            {
                hash ^= FloatData.GetHashCode();
            }
            hash ^= (int)observationDataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }