torch.get_num_threads
-
torch.get_num_threads() → int
-
Returns the number of threads used for parallelizing CPU operations
© 2019 Torch Contributors
Licensed under the 3-clause BSD License.
https://pytorch.org/docs/1.8.0/generated/torch.get_num_threads.html