PyTorch torch.get_num_interop_threads function
PyTorch torch reference manual
torch.get_num_interop_threads A function in PyTorch for getting the number of inter-op threads.
Function definition
torch.get_num_interop_threads()
Usage examples
Example
import
torch
Get the current number of inter-op threads
num_threads
=
torch.
get_num_interop_threads
(
)
(
"Inter-op thread count:"
,
num_threads
)