Skip to content
Snippets Groups Projects
Unverified Commit 3b1c45bb authored by Kai Hu's avatar Kai Hu Committed by GitHub
Browse files

[Fix] fix the docstring to match the order of the function return (#415)

parent 4637c496
No related branches found
No related tags found
No related merge requests found
......@@ -291,8 +291,8 @@ def get_dist_info(group: Optional[ProcessGroup] = None) -> Tuple[int, int]:
the default process group will be used. Defaults to None.
Returns:
tuple[int, int]: Return a tuple containing the ``world_size`` and
``rank``.
tuple[int, int]: Return a tuple containing the ``rank`` and
``world_size``.
"""
world_size = get_world_size(group)
rank = get_rank(group)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment