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