1 write to _newGrad
Microsoft.ML.StandardTrainers (1)
Optimizer\SgdOptimizer.cs (1)
332
_newValue = _func(in _newPoint, ref
_newGrad
, null);
6 references to _newGrad
Microsoft.ML.StandardTrainers (6)
Optimizer\SgdOptimizer.cs (6)
333
deriv = VectorUtils.DotProduct(in _dir, in
_newGrad
);
341
float newByNew = VectorUtils.NormSquared(
_newGrad
);
342
float newByOld = VectorUtils.DotProduct(in
_newGrad
, in _grad);
347
VectorUtils.AddMult(in
_newGrad
, -1, ref _dir);
350
VectorUtils.ScaleInto(in
_newGrad
, -1, ref _dir);
352
_newGrad
.CopyTo(ref _grad);