16 references to EnsureSize
Microsoft.ML.Core (7)
Utilities\BigArray.cs (6)
332
Utils.
EnsureSize
(ref _entries, maMax + 1, BlockSize);
338
Utils.
EnsureSize
(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
344
Utils.
EnsureSize
(ref _entries[maMin], BlockSize, BlockSize);
348
Utils.
EnsureSize
(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
356
Utils.
EnsureSize
(ref _entries[maMin], BlockSize, BlockSize);
371
Utils.
EnsureSize
(ref _entries[maMax], maMax >= FullAllocationBeyond ? BlockSize : miLim, BlockSize);
Utilities\Utils.cs (1)
925
return
EnsureSize
(ref array, min, Utils.ArrayMaxSize, keepOld);
Microsoft.ML.Data (1)
Prediction\Calibrator.cs (1)
1414
Utils.
EnsureSize
(ref _data, _itemsSeen, _capacity);
Microsoft.ML.FastTree (3)
BinFile\BinFinder.cs (3)
240
Utils.
EnsureSize
(ref _distinctCountsBuffer, arraySize, arraySize, keepOld: false);
241
Utils.
EnsureSize
(ref _distinctValues, arraySize, arraySize, keepOld: false);
242
Utils.
EnsureSize
(ref _counts, arraySize, arraySize, keepOld: false);
Microsoft.ML.KMeansClustering (2)
KMeansModelParameters.cs (1)
283
Utils.
EnsureSize
(ref centroids, _k, _k);
KMeansPlusPlusTrainer.cs (1)
1723
Utils.
EnsureSize
(ref buffer, numCursors, numCursors);
Microsoft.ML.PCA (1)
PcaTrainer.cs (1)
665
Utils.
EnsureSize
(ref vectors, _eigenVectors.Length, _eigenVectors.Length);
Microsoft.ML.StandardTrainers (1)
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
1032
Utils.
EnsureSize
(ref weights, NumberOfClasses, NumberOfClasses);
Microsoft.ML.TensorFlow (1)
TensorTypeExtensions.cs (1)
54
Utils.
EnsureSize
(ref array, (int)tensor.size, (int)tensor.size, false);