public void MergeFrom(PostProcessing other) { if (other == null) { return; } if (other.batchNonMaxSuppression_ != null) { if (batchNonMaxSuppression_ == null) { batchNonMaxSuppression_ = new global::Tensorflow.Models.ObjectDetection.Protos.BatchNonMaxSuppression(); } BatchNonMaxSuppression.MergeFrom(other.BatchNonMaxSuppression); } if (other.ScoreConverter != 0) { ScoreConverter = other.ScoreConverter; } if (other.LogitScale != 0F) { LogitScale = other.LogitScale; } if (other.calibrationConfig_ != null) { if (calibrationConfig_ == null) { calibrationConfig_ = new global::Tensorflow.Models.ObjectDetection.Protos.CalibrationConfig(); } CalibrationConfig.MergeFrom(other.CalibrationConfig); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public override int GetHashCode() { int hash = 1; if (batchNonMaxSuppression_ != null) { hash ^= BatchNonMaxSuppression.GetHashCode(); } if (ScoreConverter != 0) { hash ^= ScoreConverter.GetHashCode(); } if (LogitScale != 0F) { hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(LogitScale); } if (calibrationConfig_ != null) { hash ^= CalibrationConfig.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }