示例#1
0
 public void ResetGrad()
 {
     if (Grad != null)
     {
         Grad = Grad.ApplyFunc(x => 0.0);
     }
 }
示例#2
0
 public void UpdateSGD(double lr)
 {
     Y = ND.Sub(Y, Grad.ApplyFunc(x => x * lr));
 }