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)
314
public float Deriv => VectorUtils.DotProduct(in _dir, in
_grad
);
324
VectorUtils.ScaleInto(in
_grad
, -1, ref _dir);
342
float newByOld = VectorUtils.DotProduct(in _newGrad, in
_grad
);
343
float oldByOld = VectorUtils.NormSquared(
_grad
);