public override int GetHashCode() { int hash = 1; if (FloatData != 0F) { hash ^= FloatData.GetHashCode(); } if (DoubleData != 0D) { hash ^= DoubleData.GetHashCode(); } if (IntData != 0) { hash ^= IntData.GetHashCode(); } if (LongData != 0L) { hash ^= LongData.GetHashCode(); } if (BoolData != false) { hash ^= BoolData.GetHashCode(); } if (StringData.Length != 0) { hash ^= StringData.GetHashCode(); } hash ^= list_.GetHashCode(); return(hash); }
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); }
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); }