Addresses #31 by disabling multiprocessing for PyTorch according to advice gathered from this issue. Essentially, we need to set os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1" before PyTorch is imported and this variable is initialized. I also moved the nemo import statement to inside of the filter so that any performance impact is minimized (though I observed no speed degradation in my tests).
Addresses #31 by disabling multiprocessing for PyTorch according to advice gathered from this issue. Essentially, we need to set
os.environ["TORCHINDUCTOR_COMPILE_THREADS"] = "1"
before PyTorch is imported and this variable is initialized. I also moved the nemo import statement to inside of the filter so that any performance impact is minimized (though I observed no speed degradation in my tests).