PyTorch torch.get_num_interop_threads Function
Pytorch torch Reference Manual
torch.get_num_interop_threadsIt is a function in PyTorch used to get the number of inter-op threads.
Function Definition
torch.get_num_interop_threads()
Usage Example
Example
import torch
# Get the current inter-op thread count
num_threads = torch.get_num_interop_threads()
print("Inter-op thread count:", num_threads)
# Get the current inter-op thread count
num_threads = torch.get_num_interop_threads()
print("Inter-op thread count:", num_threads)
Other Extensions