Skip to content

Commit

Permalink
Torch DistributedContext repr, report size, not rank
Browse files Browse the repository at this point in the history
  • Loading branch information
albertz committed May 10, 2024
1 parent b1e64c9 commit a7e47db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion returnn/torch/distributed.py
Expand Up @@ -58,7 +58,7 @@ def __init__(self, options: Dict[str, Any]):
self._check_no_unknown_opts()

def __repr__(self):
return f"<{self.__class__.__name__} rank={self._rank} reduce_type={self._reduce_type}>"
return f"<{self.__class__.__name__} size={self._size} reduce_type={self._reduce_type}>"

def _check_no_unknown_opts(self):
# We check that all opts in self._opts have been used.
Expand Down

0 comments on commit a7e47db

Please sign in to comment.