PyTorch Forums
How to limit the number of CPUs used by PyTorch?
albanD
(Alban D)
January 21, 2020, 3:53pm
2
Hi,
You can use
torch.set_num_threads()
to do this.
4 Likes
show post in topic