Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PyTorch torch.get_num_interop_threads function

PyTorch torch.get_num_interop_threads function


PyTorch torch reference manual 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

(

)

print

(

"Inter-op thread count:"

,

num_threads

)


PyTorch torch reference manual PyTorch torch reference manual