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)
333deriv = VectorUtils.DotProduct(in _dir, in _newGrad); 341float newByNew = VectorUtils.NormSquared(_newGrad); 342float newByOld = VectorUtils.DotProduct(in _newGrad, in _grad); 347VectorUtils.AddMult(in _newGrad, -1, ref _dir); 350VectorUtils.ScaleInto(in _newGrad, -1, ref _dir); 352_newGrad.CopyTo(ref _grad);