"git@developer.sourcefind.cn:modelzoo/resnet50_tensorflow.git" did not exist on "fd759263773962d62da2545543e4ea51337f03d8"
Only import torch.distributed when needed (#882)
* Fix an import error for `get_world_size` and `get_rank` * Only import torch.distributed when needed torch.distributed is only used in DistributedGroupSampler * use `get_dist_info` to obtain world size and rank `get_dist_info` from `mmcv.runner.utils` handles the problem of `distributed_c10d` doesn't exist.
Showing
Please register or sign in to comment