Skip to content

Commit

Permalink
[Fix] Fix ddp ut (#2060)
Browse files Browse the repository at this point in the history
  • Loading branch information
MeowZheng committed Sep 13, 2022
1 parent b51670b commit ca7c098
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_utils/test_util_distribution.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def test_build_ddp():

if torch.cuda.is_available():
mmddp = build_ddp(
model, 'cuda', device_id=[0], process_group=MagicMock())
model, 'cuda', device_ids=[0], process_group=MagicMock())
assert isinstance(mmddp, MMDistributedDataParallel)

if digit_version(mmcv.__version__) >= digit_version('1.5.0'):
Expand Down

0 comments on commit ca7c098

Please sign in to comment.