public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { NumShards = input.ReadInt32(); break; } case 16: { endianness_ = (global::Vision.Tensorflow.Proto.BundleHeaderProto.Types.Endianness)input.ReadEnum(); break; } case 26: { if (version_ == null) { version_ = new global::Vision.Tensorflow.Proto.VersionDef(); } input.ReadMessage(version_); break; } } } }
public void MergeFrom(GraphDef other) { if (other == null) { return; } node_.Add(other.node_); if (other.versions_ != null) { if (versions_ == null) { versions_ = new global::Vision.Tensorflow.Proto.VersionDef(); } Versions.MergeFrom(other.Versions); } if (other.Version != 0) { Version = other.Version; } if (other.library_ != null) { if (library_ == null) { library_ = new global::Vision.Tensorflow.Proto.FunctionDefLibrary(); } Library.MergeFrom(other.Library); } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 10: { node_.AddEntriesFrom(input, _repeated_node_codec); break; } case 18: { if (library_ == null) { library_ = new global::Vision.Tensorflow.Proto.FunctionDefLibrary(); } input.ReadMessage(library_); break; } case 24: { Version = input.ReadInt32(); break; } case 34: { if (versions_ == null) { versions_ = new global::Vision.Tensorflow.Proto.VersionDef(); } input.ReadMessage(versions_); break; } } } }
public void MergeFrom(BundleHeaderProto other) { if (other == null) { return; } if (other.NumShards != 0) { NumShards = other.NumShards; } if (other.Endianness != 0) { Endianness = other.Endianness; } if (other.version_ != null) { if (version_ == null) { version_ = new global::Vision.Tensorflow.Proto.VersionDef(); } Version.MergeFrom(other.Version); } }