2 writes to _grad
Microsoft.ML.StandardTrainers (2)
Optimizer\SgdOptimizer.cs (2)
323_value = _func(in _point, ref _grad, null); 352_newGrad.CopyTo(ref _grad);
4 references to _grad
Microsoft.ML.StandardTrainers (4)
Optimizer\SgdOptimizer.cs (4)
314public float Deriv => VectorUtils.DotProduct(in _dir, in _grad); 324VectorUtils.ScaleInto(in _grad, -1, ref _dir); 342float newByOld = VectorUtils.DotProduct(in _newGrad, in _grad); 343float oldByOld = VectorUtils.NormSquared(_grad);