4 writes to _dir
Microsoft.ML.StandardTrainers (4)
Optimizer\SgdOptimizer.cs (4)
324
VectorUtils.ScaleInto(in _grad, -1, ref
_dir
);
346
VectorUtils.ScaleBy(ref
_dir
, beta);
347
VectorUtils.AddMult(in _newGrad, -1, ref
_dir
);
350
VectorUtils.ScaleInto(in _newGrad, -1, ref
_dir
);
3 references to _dir
Microsoft.ML.StandardTrainers (3)
Optimizer\SgdOptimizer.cs (3)
314
public float Deriv => VectorUtils.DotProduct(in
_dir
, in _grad);
331
VectorUtils.AddMultInto(in _point, step, in
_dir
, ref _newPoint);
333
deriv = VectorUtils.DotProduct(in
_dir
, in _newGrad);