qywu/TorchFly

Feature Request Fix DDP torch.jit.trace cannot be pickled

Closed this issue · 2 comments

qywu commented

Currently, torch.jit.trace can't be pickled with multiprocessing.spawn. To fix this, it is better to use subprocess.Popen instead.

qywu commented

subprocess.Popen is not compatible with jupyter notebook. A better solution is to use cloudpickle instead of the default pickle to serialize the arguments

qywu commented

cloudpickle also can't pickle torch._C.ScriptFunction