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