Skip to content

Commit

Permalink
Update distributed_c10d.py
Browse files Browse the repository at this point in the history
Signed-off-by: Jagadish Krishnamoorthy <jagdish.krishna@gmail.com>
  • Loading branch information
jaglinux committed Dec 23, 2020
1 parent edc212e commit a37fb05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/distributed/distributed_c10d.py
Original file line number Diff line number Diff line change
Expand Up @@ -2398,7 +2398,7 @@ def barrier(group=GroupMember.WORLD,

opts = BarrierOptions()
if device_ids is not None:
if get_backend(group) != Backend.NCCL:
if get_backend(group) != Backend.NCCL:
raise RuntimeError("Function argument device_ids not supported "
"for the selected backend {}".format(get_backend(group)))
if isinstance(device_ids, list):
Expand Down

0 comments on commit a37fb05

Please sign in to comment.