Beispiel #1
0
        public void MergeFrom(InferenceResult other)
        {
            if (other == null)
            {
                return;
            }
            if (other.modelSpec_ != null)
            {
                if (modelSpec_ == null)
                {
                    modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
                }
                ModelSpec.MergeFrom(other.ModelSpec);
            }
            switch (other.ResultCase)
            {
            case ResultOneofCase.ClassificationResult:
                ClassificationResult = other.ClassificationResult;
                break;

            case ResultOneofCase.RegressionResult:
                RegressionResult = other.RegressionResult;
                break;
            }
        }
Beispiel #2
0
        public void MergeFrom(InferenceResult other)
        {
            if (other == null)
            {
                return;
            }
            if (other.modelSpec_ != null)
            {
                if (modelSpec_ == null)
                {
                    ModelSpec = new global::Tensorflow.Serving.ModelSpec();
                }
                ModelSpec.MergeFrom(other.ModelSpec);
            }
            switch (other.ResultCase)
            {
            case ResultOneofCase.ClassificationResult:
                if (ClassificationResult == null)
                {
                    ClassificationResult = new global::Tensorflow.Serving.ClassificationResult();
                }
                ClassificationResult.MergeFrom(other.ClassificationResult);
                break;

            case ResultOneofCase.RegressionResult:
                if (RegressionResult == null)
                {
                    RegressionResult = new global::Tensorflow.Serving.RegressionResult();
                }
                RegressionResult.MergeFrom(other.RegressionResult);
                break;
            }

            _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
        }
Beispiel #3
0
 public void MergeFrom(LogMetadata other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.samplingConfig_ != null)
     {
         if (samplingConfig_ == null)
         {
             SamplingConfig = new global::Tensorflow.Serving.SamplingConfig();
         }
         SamplingConfig.MergeFrom(other.SamplingConfig);
     }
     savedModelTags_.Add(other.savedModelTags_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #4
0
 public override int GetHashCode() {
   int hash = 1;
   if (modelSpec_ != null) hash ^= ModelSpec.GetHashCode();
   hash ^= tensor_.GetHashCode();
   if (metadata_ != null) hash ^= Metadata.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            hash ^= Outputs.GetHashCode();
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            hash ^= metadataField_.GetHashCode();
            return(hash);
        }
Beispiel #7
0
 public override int GetHashCode() {
   int hash = 1;
   if (modelSpec_ != null) hash ^= ModelSpec.GetHashCode();
   hash ^= feed_.GetHashCode();
   hash ^= fetch_.GetHashCode();
   hash ^= target_.GetHashCode();
   if (options_ != null) hash ^= Options.GetHashCode();
   if (_unknownFields != null) {
     hash ^= _unknownFields.GetHashCode();
   }
   return hash;
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            if (input_ != null)
            {
                hash ^= Input.GetHashCode();
            }
            return(hash);
        }
Beispiel #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            if (MethodName.Length != 0)
            {
                hash ^= MethodName.GetHashCode();
            }
            return(hash);
        }
Beispiel #10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            hash ^= Metadata.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public void MergeFrom(GetModelMetadataResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     metadata_.Add(other.metadata_);
 }
Beispiel #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            hash ^= Inputs.GetHashCode();
            hash ^= outputFilter_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #13
0
 public void MergeFrom(PredictResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     outputs_.Add(other.outputs_);
 }
Beispiel #14
0
 public void MergeFrom(GetModelMetadataRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     metadataField_.Add(other.metadataField_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #15
0
 public void MergeFrom(PredictResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     outputs_.Add(other.outputs_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            if (result_ != null)
            {
                hash ^= Result.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            if (samplingConfig_ != null)
            {
                hash ^= SamplingConfig.GetHashCode();
            }
            hash ^= savedModelTags_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #18
0
 public void MergeFrom(SessionRunResponse other) {
   if (other == null) {
     return;
   }
   if (other.modelSpec_ != null) {
     if (modelSpec_ == null) {
       ModelSpec = new global::Tensorflow.Serving.ModelSpec();
     }
     ModelSpec.MergeFrom(other.ModelSpec);
   }
   tensor_.Add(other.tensor_);
   if (other.metadata_ != null) {
     if (metadata_ == null) {
       Metadata = new global::Tensorflow.RunMetadata();
     }
     Metadata.MergeFrom(other.Metadata);
   }
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #19
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (modelSpec_ != null)
            {
                hash ^= ModelSpec.GetHashCode();
            }
            if (resultCase_ == ResultOneofCase.ClassificationResult)
            {
                hash ^= ClassificationResult.GetHashCode();
            }
            if (resultCase_ == ResultOneofCase.RegressionResult)
            {
                hash ^= RegressionResult.GetHashCode();
            }
            hash ^= (int)resultCase_;
            return(hash);
        }
Beispiel #20
0
 public void MergeFrom(InferenceTask other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.MethodName.Length != 0)
     {
         MethodName = other.MethodName;
     }
 }
Beispiel #21
0
 public void MergeFrom(InferenceTask other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.MethodName.Length != 0)
     {
         MethodName = other.MethodName;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #22
0
 public void MergeFrom(SessionRunRequest other) {
   if (other == null) {
     return;
   }
   if (other.modelSpec_ != null) {
     if (modelSpec_ == null) {
       ModelSpec = new global::Tensorflow.Serving.ModelSpec();
     }
     ModelSpec.MergeFrom(other.ModelSpec);
   }
   feed_.Add(other.feed_);
   fetch_.Add(other.fetch_);
   target_.Add(other.target_);
   if (other.options_ != null) {
     if (options_ == null) {
       Options = new global::Tensorflow.RunOptions();
     }
     Options.MergeFrom(other.Options);
   }
   _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(ClassificationRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             input_ = new global::Tensorflow.Serving.Input();
         }
         Input.MergeFrom(other.Input);
     }
 }
Beispiel #24
0
 public void MergeFrom(ClassificationResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             result_ = new global::Tensorflow.Serving.ClassificationResult();
         }
         Result.MergeFrom(other.Result);
     }
 }
Beispiel #25
0
 public void MergeFrom(RegressionRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.input_ != null)
     {
         if (input_ == null)
         {
             Input = new global::Tensorflow.Serving.Input();
         }
         Input.MergeFrom(other.Input);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #26
0
 public void MergeFrom(RegressionResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     if (other.result_ != null)
     {
         if (result_ == null)
         {
             Result = new global::Tensorflow.Serving.RegressionResult();
         }
         Result.MergeFrom(other.Result);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }