4 writes to _threads
Microsoft.ML.Data (4)
DataLoadSave\Binary\BinaryLoader.cs (4)
783
_threads
= Math.Max(1, args.Threads ?? (Environment.ProcessorCount / 2));
844
_threads
= ctx.Reader.ReadInt32();
849
_threads
= Math.Max(1, Environment.ProcessorCount / 2);
857
_threads
= Math.Max(1, Environment.ProcessorCount / 2);
6 references to _threads
Microsoft.ML.Data (6)
DataLoadSave\Binary\BinaryLoader.cs (6)
845
ch.CheckDecode(
_threads
>= 0);
846
if (
_threads
== 0)
946
_host.Assert(
_threads
>= 1);
947
SaveParameters(ctx, _autodeterminedThreads ? 0 :
_threads
, _shuffleBlocks);
1301
int pipeBuffers = 2 * ((_parent.
_threads
+ _pipes.Length - 1) / _pipes.Length);
1383
Task[] pipeWorkers = new Task[_parent.
_threads
];