public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input); break; case 8: { Kind = (global::StreamExecutor.Dnn.ConvolutionKind)input.ReadEnum(); break; } case 18: { if (input_ == null) { Input = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } input.ReadMessage(Input); break; } case 26: { if (filter_ == null) { Filter = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } input.ReadMessage(Filter); break; } case 34: { if (output_ == null) { Output = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } input.ReadMessage(Output); break; } case 42: { if (convDesc_ == null) { ConvDesc = new global::StreamExecutor.Dnn.ConvolutionDescriptorProto(); } input.ReadMessage(ConvDesc); break; } case 49: { ConvScale = input.ReadDouble(); break; } case 57: { SideValueScale = input.ReadDouble(); break; } case 64: { Activation = (global::StreamExecutor.Dnn.ActivationMode)input.ReadEnum(); break; } case 72: { InputAddress = input.ReadInt64(); break; } case 80: { FilterAddress = input.ReadInt64(); break; } case 88: { OutputAddress = input.ReadInt64(); break; } case 96: { BiasAddress = input.ReadInt64(); break; } case 104: { SideInputAddress = input.ReadInt64(); break; } } } }
public void MergeFrom(ConvolutionProto other) { if (other == null) { return; } if (other.Kind != 0) { Kind = other.Kind; } if (other.input_ != null) { if (input_ == null) { Input = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Input.MergeFrom(other.Input); } if (other.filter_ != null) { if (filter_ == null) { Filter = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Filter.MergeFrom(other.Filter); } if (other.output_ != null) { if (output_ == null) { Output = new global::StreamExecutor.Dnn.TensorDescriptorProto(); } Output.MergeFrom(other.Output); } if (other.convDesc_ != null) { if (convDesc_ == null) { ConvDesc = new global::StreamExecutor.Dnn.ConvolutionDescriptorProto(); } ConvDesc.MergeFrom(other.ConvDesc); } if (other.ConvScale != 0D) { ConvScale = other.ConvScale; } if (other.SideValueScale != 0D) { SideValueScale = other.SideValueScale; } if (other.Activation != 0) { Activation = other.Activation; } if (other.InputAddress != 0L) { InputAddress = other.InputAddress; } if (other.FilterAddress != 0L) { FilterAddress = other.FilterAddress; } if (other.OutputAddress != 0L) { OutputAddress = other.OutputAddress; } if (other.BiasAddress != 0L) { BiasAddress = other.BiasAddress; } if (other.SideInputAddress != 0L) { SideInputAddress = other.SideInputAddress; } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }