public void MergeFrom(RemoteFusedGraphExecuteInfo other) { if (other == null) { return; } if (other.remoteGraph_ != null) { if (remoteGraph_ == null) { remoteGraph_ = new global::Vision.Tensorflow.Proto.GraphDef(); } RemoteGraph.MergeFrom(other.RemoteGraph); } graphInputNodeName_.Add(other.graphInputNodeName_); graphOutputNodeName_.Add(other.graphOutputNodeName_); if (other.ExecutorName.Length != 0) { ExecutorName = other.ExecutorName; } if (other.SerializedExecutorParameters.Length != 0) { SerializedExecutorParameters = other.SerializedExecutorParameters; } defaultGraphInputTensorShape_.Add(other.defaultGraphInputTensorShape_); defaultGraphOutputTensorShape_.Add(other.defaultGraphOutputTensorShape_); }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { if (remoteGraph_ == null) { remoteGraph_ = new global::Vision.Tensorflow.Proto.GraphDef(); } input.ReadMessage(remoteGraph_); break; } case 18: { graphInputNodeName_.AddEntriesFrom(input, _repeated_graphInputNodeName_codec); break; } case 26: { graphOutputNodeName_.AddEntriesFrom(input, _repeated_graphOutputNodeName_codec); break; } case 34: { ExecutorName = input.ReadString(); break; } case 42: { SerializedExecutorParameters = input.ReadBytes(); break; } case 50: { defaultGraphInputTensorShape_.AddEntriesFrom(input, _repeated_defaultGraphInputTensorShape_codec); break; } case 58: { defaultGraphOutputTensorShape_.AddEntriesFrom(input, _repeated_defaultGraphOutputTensorShape_codec); break; } } } }