예제 #1
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);
 }
예제 #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (modelSpec_ == null)
                    {
                        modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(modelSpec_);
                    break;
                }

                case 18: {
                    if (input_ == null)
                    {
                        input_ = new global::Tensorflow.Serving.Input();
                    }
                    input.ReadMessage(input_);
                    break;
                }
                }
            }
        }
예제 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (modelSpec_ == null)
                    {
                        modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(modelSpec_);
                    break;
                }

                case 18: {
                    inputs_.AddEntriesFrom(input, _map_inputs_codec);
                    break;
                }

                case 26: {
                    outputFilter_.AddEntriesFrom(input, _repeated_outputFilter_codec);
                    break;
                }
                }
            }
        }
예제 #4
0
        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 (result_ == null)
                    {
                        Result = new global::Tensorflow.Serving.RegressionResult();
                    }
                    input.ReadMessage(Result);
                    break;
                }

                case 18: {
                    if (modelSpec_ == null)
                    {
                        ModelSpec = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(ModelSpec);
                    break;
                }
                }
            }
        }
예제 #5
0
        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 (modelSpec_ == null)
                    {
                        modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(modelSpec_);
                    break;
                }

                case 18: {
                    metadata_.AddEntriesFrom(input, _map_metadata_codec);
                    break;
                }
                }
            }
        }
예제 #6
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;
            }
        }
예제 #7
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);
        }
예제 #8
0
 public void MergeFrom(GetModelStatusRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
 }
예제 #9
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_);
 }
예제 #10
0
 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_);
 }
예제 #11
0
 public void MergeFrom(GetModelStatusRequest other)
 {
     if (other == null)
     {
         return;
     }
     if (other.modelSpec_ != null)
     {
         if (modelSpec_ == null)
         {
             ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         ModelSpec.MergeFrom(other.ModelSpec);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #12
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);
 }
예제 #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_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
예제 #14
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (modelSpec_ == null)
                    {
                        modelSpec_ = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(modelSpec_);
                    break;
                }

                case 18: {
                    global::Tensorflow.Serving.ClassificationResult subBuilder = new global::Tensorflow.Serving.ClassificationResult();
                    if (resultCase_ == ResultOneofCase.ClassificationResult)
                    {
                        subBuilder.MergeFrom(ClassificationResult);
                    }
                    input.ReadMessage(subBuilder);
                    ClassificationResult = subBuilder;
                    break;
                }

                case 26: {
                    global::Tensorflow.Serving.RegressionResult subBuilder = new global::Tensorflow.Serving.RegressionResult();
                    if (resultCase_ == ResultOneofCase.RegressionResult)
                    {
                        subBuilder.MergeFrom(RegressionResult);
                    }
                    input.ReadMessage(subBuilder);
                    RegressionResult = subBuilder;
                    break;
                }
                }
            }
        }
예제 #15
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;
     }
 }
예제 #16
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);
 }
예제 #17
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);
 }
예제 #18
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);
 }
예제 #19
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);
     }
 }
예제 #20
0
 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);
     }
 }
예제 #21
0
        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 (modelSpec_ == null)
                    {
                        ModelSpec = new global::Tensorflow.Serving.ModelSpec();
                    }
                    input.ReadMessage(ModelSpec);
                    break;
                }

                case 18: {
                    if (samplingConfig_ == null)
                    {
                        SamplingConfig = new global::Tensorflow.Serving.SamplingConfig();
                    }
                    input.ReadMessage(SamplingConfig);
                    break;
                }

                case 26: {
                    savedModelTags_.AddEntriesFrom(input, _repeated_savedModelTags_codec);
                    break;
                }
                }
            }
        }
예제 #22
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);
 }
예제 #23
0
 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 (modelSpec_ == null) {
           ModelSpec = new global::Tensorflow.Serving.ModelSpec();
         }
         input.ReadMessage(ModelSpec);
         break;
       }
       case 18: {
         feed_.AddEntriesFrom(input, _repeated_feed_codec);
         break;
       }
       case 26: {
         fetch_.AddEntriesFrom(input, _repeated_fetch_codec);
         break;
       }
       case 34: {
         target_.AddEntriesFrom(input, _repeated_target_codec);
         break;
       }
       case 42: {
         if (options_ == null) {
           Options = new global::Tensorflow.RunOptions();
         }
         input.ReadMessage(Options);
         break;
       }
     }
   }
 }
예제 #24
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);
 }