5 writes to NumberOfThreads
Microsoft.ML.IntegrationTests (3)
Evaluation.cs (1)
125
.Append(mlContext.Clustering.Trainers.KMeans(new KMeansTrainer.Options {
NumberOfThreads
= 1 }));
IntrospectiveTraining.cs (1)
426
NumberOfThreads
= 1
ONNX.cs (1)
94
new KMeansTrainer.Options {
NumberOfThreads
= 1, MaximumNumberOfIterations = 10 }));
Microsoft.ML.Samples (1)
Dynamic\Trainers\Clustering\KMeansWithOptions.cs (1)
32
NumberOfThreads
= 1
Microsoft.ML.Tests (1)
OnnxConversionTest.cs (1)
159
NumberOfThreads
= 1,
5 references to NumberOfThreads
Microsoft.ML.KMeansClustering (5)
KMeansPlusPlusTrainer.cs (5)
191
Host.CheckUserArg(!options.
NumberOfThreads
.HasValue || options.
NumberOfThreads
> 0, nameof(options.
NumberOfThreads
),
193
_numThreads = ComputeNumThreads(options.
NumberOfThreads
);
793
ch.CheckUserArg(numThreads > 0, nameof(KMeansTrainer.Options.
NumberOfThreads
), "Must be positive");