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