Beispiel #1
0
 public override NdArray create_state(int index, NdArray weight)
 {
     if (Math.Abs(this._momentum) < float.Epsilon)
     {
         return(null);
     }
     return(NdArray.Zeros(weight.GetShape(), weight.GetContext(), weight.GetDtype()));
 }