torch.get_num_threads torch.get_num_threads() → int Returns the number of threads used for parallelizing CPU operations