3 writes to _x
Microsoft.ML.StandardTrainers (3)
Optimizer\Optimizer.cs (3)
208
_x
= CreateWorkingVector();
209
initial.CopyTo(ref
_x
);
370
Utils.Swap(ref
_x
, ref _newX);
12 references to _x
Microsoft.ML.StandardTrainers (12)
Optimizer\L1Optimizer.cs (7)
132
VBufferUtils.ApplyInto(in
_x
, in _grad, ref _steepestDescDir,
150
VBufferUtils.ApplyInto(in
_x
, in _grad, ref _steepestDescDir,
166
VectorUtils.AddMultInto(in
_x
, alpha, in _dir, ref _newX);
170
VBufferUtils.ApplyWith(in
_x
, ref _newX,
211
float unnormCos = VectorUtils.DotProduct(in _steepestDescDir, in _newX) - VectorUtils.DotProduct(in _steepestDescDir, in
_x
);
222
unnormCos = VectorUtils.DotProduct(in _steepestDescDir, in _newX) - VectorUtils.DotProduct(in _steepestDescDir, in
_x
);
242
unnormCos = VectorUtils.DotProduct(in _steepestDescDir, in _newX) - VectorUtils.DotProduct(in _steepestDescDir, in
_x
);
Optimizer\Optimizer.cs (5)
241
Value = LastValue = Eval(in
_x
, ref _grad);
307
VBufferUtils.ApplyInto(in
_x
, in _grad, ref _steepestDescDir,
357
VectorUtils.AddMultInto(in _newX, -1, in
_x
, ref nextS);
404
VectorUtils.AddMultInto(in
_x
, alpha, in _dir, ref _newX);
485
VectorUtils.AddMultInto(in
_x
, alpha, in _dir, ref _newX);