Closed qywu closed 4 years ago
Currently, torch.jit.trace can't be pickled with multiprocessing.spawn. To fix this, it is better to use subprocess.Popen instead.
torch.jit.trace
subprocess.Popen
subprocess.Popen is not compatible with jupyter notebook. A better solution is to use cloudpickle instead of the default pickle to serialize the arguments
cloudpickle also can't pickle torch._C.ScriptFunction
Currently,
torch.jit.trace
can't be pickled with multiprocessing.spawn. To fix this, it is better to usesubprocess.Popen
instead.