"examples/pytorch/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "3c387988d7addc4a6b92785c12b64566d164bb55"
Use current device id in dist.barrier
Summary: Pull Request resolved: https://github.com/facebookresearch/detectron2/pull/3350 `get_local_rank` relies on a global variable set by Detectron2's `launch` utils. Since other frameworks might use Detectron2's distribute utils but don't launch with Detectron2's `launch` utils. Use `torch.cuda.current_device` to get the current device instead. Reviewed By: HarounH, ppwwyyxx Differential Revision: D30233746 fbshipit-source-id: 0b140ed5c1e7cd87ccf05235127f338ffc40a53d
Showing
Please register or sign in to comment