Hi,
I am using libtorch-cpu version 1.5.1 for loading a model built in Python and then running forward and backward propagation on it. I noticed that these operations are creating multiple Pytorch threads. I tried to control these threads using at::set_num_threads(1). But, that doesn’t seem to work.
Also, is there a way to cleanly close the threads of PyTorch? Because I can see the threads even after the task is complete.