3 writes to _grad
Microsoft.ML.StandardTrainers (3)
Optimizer\Optimizer.cs (3)
214
_grad
= CreateWorkingVector();
241
Value = LastValue = Eval(in _x, ref
_grad
);
371
Utils.Swap(ref
_grad
, ref _newGrad);
6 references to _grad
Microsoft.ML.StandardTrainers (6)
Optimizer\L1Optimizer.cs (2)
132
VBufferUtils.ApplyInto(in _x, in
_grad
, ref _steepestDescDir,
150
VBufferUtils.ApplyInto(in _x, in
_grad
, ref _steepestDescDir,
Optimizer\Optimizer.cs (4)
307
VBufferUtils.ApplyInto(in _x, in
_grad
, ref _steepestDescDir,
318
VectorUtils.ScaleInto(in
_grad
, -1, ref _dir);
358
VectorUtils.AddMultInto(in _newGrad, -1, in
_grad
, ref nextY);
383
float dirDeriv = VectorUtils.DotProduct(in _dir, in
_grad
);