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

            if (model_ != null)
            {
                hash ^= Model.GetHashCode();
            }
            if (trainConfig_ != null)
            {
                hash ^= TrainConfig.GetHashCode();
            }
            if (trainInputReader_ != null)
            {
                hash ^= TrainInputReader.GetHashCode();
            }
            if (evalConfig_ != null)
            {
                hash ^= EvalConfig.GetHashCode();
            }
            hash ^= evalInputReader_.GetHashCode();
            if (graphRewriter_ != null)
            {
                hash ^= GraphRewriter.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public void MergeFrom(TrainEvalPipelineConfig other)
 {
     if (other == null)
     {
         return;
     }
     if (other.model_ != null)
     {
         if (model_ == null)
         {
             model_ = new global::Tensorflow.Models.ObjectDetection.Protos.DetectionModel();
         }
         Model.MergeFrom(other.Model);
     }
     if (other.trainConfig_ != null)
     {
         if (trainConfig_ == null)
         {
             trainConfig_ = new global::Tensorflow.Models.ObjectDetection.Protos.TrainConfig();
         }
         TrainConfig.MergeFrom(other.TrainConfig);
     }
     if (other.trainInputReader_ != null)
     {
         if (trainInputReader_ == null)
         {
             trainInputReader_ = new global::Tensorflow.Models.ObjectDetection.Protos.InputReader();
         }
         TrainInputReader.MergeFrom(other.TrainInputReader);
     }
     if (other.evalConfig_ != null)
     {
         if (evalConfig_ == null)
         {
             evalConfig_ = new global::Tensorflow.Models.ObjectDetection.Protos.EvalConfig();
         }
         EvalConfig.MergeFrom(other.EvalConfig);
     }
     evalInputReader_.Add(other.evalInputReader_);
     if (other.graphRewriter_ != null)
     {
         if (graphRewriter_ == null)
         {
             graphRewriter_ = new global::Tensorflow.Models.ObjectDetection.Protos.GraphRewriter();
         }
         GraphRewriter.MergeFrom(other.GraphRewriter);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }