+3
−0
+1
−3
+7
−2
+3
−0
+3
−1
Loading
Geplante GitLab Downtime: Montag 07. September, 14:00 Uhr bis 16:00 Uhr. / Scheduled GitLab Downtime: Monday September 7th 14:00 - 16:00.
Summary: On a multi-gpu training scenario, the `train.py` script spawns new processes with `torch.multiprocessing.spawn`. Unfortunately those child processes don't inherit the modules imported with `--user-dir`. This pull request fixes this problem: custom module import in now explicit on every `main()` function. Pull Request resolved: https://github.com/pytorch/fairseq/pull/449 Differential Revision: D13676922 Pulled By: myleott fbshipit-source-id: 520358d66155697885b878a37e7d0484bddbc1c6