PyTorch CPU hangs on nn.Linear

PyTorch uses OpenMP by default (not multiprocessing). I see your backtrace the conda environment is named “fairseq”. I mentioned multiprocessing because I know the fairseq project uses multiprocessing.

I’m not sure why you got a deadlock.