public override int GetHashCode() { int hash = 1; if (DimInput != 0) { hash ^= DimInput.GetHashCode(); } if (samplesMean_ != null) { hash ^= SamplesMean.GetHashCode(); } if (samplesStd_ != null) { hash ^= SamplesStd.GetHashCode(); } if (NumLayer != 0) { hash ^= NumLayer.GetHashCode(); } hash ^= layer_.GetHashCode(); if (DimOutput != 0) { hash ^= DimOutput.GetHashCode(); } return(hash); }
public void MergeFrom(FnnVehicleModel other) { if (other == null) { return; } if (other.DimInput != 0) { DimInput = other.DimInput; } if (other.samplesMean_ != null) { if (samplesMean_ == null) { samplesMean_ = new global::Apollo.Prediction.Vector(); } SamplesMean.MergeFrom(other.SamplesMean); } if (other.samplesStd_ != null) { if (samplesStd_ == null) { samplesStd_ = new global::Apollo.Prediction.Vector(); } SamplesStd.MergeFrom(other.SamplesStd); } if (other.NumLayer != 0) { NumLayer = other.NumLayer; } layer_.Add(other.layer_); if (other.DimOutput != 0) { DimOutput = other.DimOutput; } }