Exemple #1
0
 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::Apollo.Prediction.Matrix();
         }
         LayerInputWeight.MergeFrom(other.LayerInputWeight);
     }
     if (other.layerBias_ != null)
     {
         if (layerBias_ == null)
         {
             layerBias_ = new global::Apollo.Prediction.Vector();
         }
         LayerBias.MergeFrom(other.LayerBias);
     }
     if (other.LayerActivationFunc != 0)
     {
         LayerActivationFunc = other.LayerActivationFunc;
     }
 }