Does your thread count change your model's output? I tested torch.set_num_threads on 11 operations
I summed the same 10 million float32 numbers five times on my laptop, changing only torch.set_num_threads . I got five different answers: 1 thread: -177.465576171875 2 threads: -177.46554565429688 4 threads: -177.46632385253906 8 threads: -177.4659423828125 16 threads: -177.46597290039062 Then I ra…
Read the full story at DEV Community — Machine Learning ↗
Timeline · 1 report
- 2026-12-05 12:46 · DEV Community — Machine Learning
Does your thread count change your model's output? I tested torch.set_num_threads on 11 operations