2 writes to _batchEnd
Microsoft.ML.Data (2)
DataView\AppendRowsDataView.cs (2)
435
_batchEnd
= 0;
453
_batchEnd
= newEnd;
9 references to _batchEnd
Microsoft.ML.Data (9)
DataView\AppendRowsDataView.cs (9)
436
for (int i = 0; i < _rowsLeft.Length &&
_batchEnd
< BatchSize; i++)
440
newEnd =
_batchEnd
+ _rowsLeft[i];
445
newEnd =
_batchEnd
+ (int)Math.Ceiling((double)_rowsLeft[i] * BatchSize / _totalLeft);
450
for (int j =
_batchEnd
; j < newEnd; j++)
452
_rowsLeft[i] -= newEnd -
_batchEnd
;
455
_totalLeft -=
_batchEnd
;
456
Utils.Shuffle(_rand, _batch.AsSpan(0,
_batchEnd
));
461
if (_batchPos <
_batchEnd
)
466
_ectx.Assert(
_batchEnd
> 0);