9 writes to _newX
Microsoft.ML.StandardTrainers (9)
Optimizer\L1Optimizer.cs (3)
166
VectorUtils.AddMultInto(in _x, alpha, in _dir, ref
_newX
);
170
VBufferUtils.ApplyWith(in _x, ref
_newX
,
179
VBufferUtils.Apply(ref
_newX
, delegate (int ind, ref float newXval)
Optimizer\Optimizer.cs (6)
216
_newX
= CreateWorkingVector();
370
Utils.Swap(ref _x, ref
_newX
);
404
VectorUtils.AddMultInto(in _x, alpha, in _dir, ref
_newX
);
407
VBufferUtils.Apply(ref
_newX
, delegate (int ind, ref float newXval)
485
VectorUtils.AddMultInto(in _x, alpha, in _dir, ref
_newX
);
488
VBufferUtils.Apply(ref
_newX
, delegate (int ind, ref float newXval)
8 references to _newX
Microsoft.ML.StandardTrainers (8)
Optimizer\L1Optimizer.cs (4)
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);
228
Value = Eval(in
_newX
, ref _newGrad);
242
unnormCos = VectorUtils.DotProduct(in _steepestDescDir, in
_newX
) - VectorUtils.DotProduct(in _steepestDescDir, in _x);
Optimizer\Optimizer.cs (4)
148
public VBuffer<float> X { get { return
_newX
; } }
357
VectorUtils.AddMultInto(in
_newX
, -1, in _x, ref nextS);
414
Value = Eval(in
_newX
, ref _newGrad);
495
Value = Eval(in
_newX
, ref _newGrad);