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 void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 10: { if (batchNonMaxSuppression_ == null) { batchNonMaxSuppression_ = new global::Tensorflow.Models.ObjectDetection.Protos.BatchNonMaxSuppression(); } input.ReadMessage(batchNonMaxSuppression_); break; } case 16: { scoreConverter_ = (global::Tensorflow.Models.ObjectDetection.Protos.PostProcessing.Types.ScoreConverter)input.ReadEnum(); break; } case 29: { LogitScale = input.ReadFloat(); break; } case 34: { if (calibrationConfig_ == null) { calibrationConfig_ = new global::Tensorflow.Models.ObjectDetection.Protos.CalibrationConfig(); } input.ReadMessage(calibrationConfig_); break; } } } }