"examples/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "d626703191eed866cfe2512d51ebd37f07057a14"
Setup root logger once & on import time
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/523 To avoid setting it up multiple times, add run_once() decorator. Additionally make sure logging is configured for datalodaing workers, which have a different entry point, by moving setting up logging to the import time. Right now when a dataloader worker is created using spawn method from multiprocessing module, a new Python interpreter is created, with all the modules imported anew and with the entry point set to the method specified. This means that the entry point of the training framework is skipped, together with the logging setup. With this change, the logging is configured on the import time, which means that when a dataloading process is created, even though the training main is not invoked, the logging is still configured because even though train_net is not invoked as an entry point, it's still imported in the child process. Reviewed By: miqueljubert Differential Revision: D44641142 fbshipit-source-id: 06ea85363d965b31d7f9ade3c2615ed9db67470b
Showing
Please register or sign in to comment