Solved by tom in post #8 
              
              
                I think you have (from torch/include/ATen/Parallel.h) void set_num_threads(int); void set_num_interop_threads(int); 
Best regards 
Thomas