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