public void MergeFrom(Layer other) { if (other == null) { return; } if (other.LayerInputDim != 0) { LayerInputDim = other.LayerInputDim; } if (other.LayerOutputDim != 0) { LayerOutputDim = other.LayerOutputDim; } if (other.layerInputWeight_ != null) { if (layerInputWeight_ == null) { layerInputWeight_ = new global::Matrix(); } LayerInputWeight.MergeFrom(other.LayerInputWeight); } if (other.layerBias_ != null) { if (layerBias_ == null) { layerBias_ = new global::Vector(); } LayerBias.MergeFrom(other.LayerBias); } if (other.LayerActivationFunc != 0) { LayerActivationFunc = other.LayerActivationFunc; } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { DimInput = input.ReadInt32(); break; } case 18: { if (samplesMean_ == null) { samplesMean_ = new global::Vector(); } input.ReadMessage(samplesMean_); break; } case 26: { if (samplesStd_ == null) { samplesStd_ = new global::Vector(); } input.ReadMessage(samplesStd_); break; } case 32: { NumLayer = input.ReadInt32(); break; } case 42: { layer_.AddEntriesFrom(input, _repeated_layer_codec); break; } case 48: { DimOutput = input.ReadInt32(); break; } } } }
public void MergeFrom(pb::CodedInputStream input) { uint tag; while ((tag = input.ReadTag()) != 0) { switch (tag) { default: input.SkipLastField(); break; case 8: { LayerInputDim = input.ReadInt32(); break; } case 16: { LayerOutputDim = input.ReadInt32(); break; } case 26: { if (layerInputWeight_ == null) { layerInputWeight_ = new global::Matrix(); } input.ReadMessage(layerInputWeight_); break; } case 34: { if (layerBias_ == null) { layerBias_ = new global::Vector(); } input.ReadMessage(layerBias_); break; } case 40: { layerActivationFunc_ = (global::Layer.Types.ActivationFunc)input.ReadEnum(); break; } } } }
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: { Id = input.ReadInt32(); break; } case 18: { if (trackerPhysicalPosition_ == null) { trackerPhysicalPosition_ = new global::Vector(); } input.ReadMessage(trackerPhysicalPosition_); break; } case 26: { if (trackerVRPositon_ == null) { trackerVRPositon_ = new global::Vector(); } input.ReadMessage(trackerVRPositon_); break; } case 34: { if (trackerRotation_ == null) { trackerRotation_ = new global::Quadrublet(); } input.ReadMessage(trackerRotation_); break; } } } }
public void MergeFrom(Tracker other) { if (other == null) { return; } if (other.Id != 0) { Id = other.Id; } if (other.trackerPhysicalPosition_ != null) { if (trackerPhysicalPosition_ == null) { trackerPhysicalPosition_ = new global::Vector(); } TrackerPhysicalPosition.MergeFrom(other.TrackerPhysicalPosition); } if (other.trackerVRPositon_ != null) { if (trackerVRPositon_ == null) { trackerVRPositon_ = new global::Vector(); } TrackerVRPositon.MergeFrom(other.TrackerVRPositon); } if (other.trackerRotation_ != null) { if (trackerRotation_ == null) { trackerRotation_ = new global::Quadrublet(); } TrackerRotation.MergeFrom(other.TrackerRotation); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public void MergeFrom(FnnModel other) { if (other == null) { return; } if (other.DimInput != 0) { DimInput = other.DimInput; } if (other.samplesMean_ != null) { if (samplesMean_ == null) { samplesMean_ = new global::Vector(); } SamplesMean.MergeFrom(other.SamplesMean); } if (other.samplesStd_ != null) { if (samplesStd_ == null) { samplesStd_ = new global::Vector(); } SamplesStd.MergeFrom(other.SamplesStd); } if (other.NumLayer != 0) { NumLayer = other.NumLayer; } layer_.Add(other.layer_); if (other.DimOutput != 0) { DimOutput = other.DimOutput; } }