communication api note fix

This commit is contained in:
yao_yf 2021-08-17 11:07:59 +08:00
parent 2c3bd0fdec
commit 765ecda928
1 changed files with 2 additions and 4 deletions

View File

@ -232,8 +232,7 @@ def get_world_rank_from_group_rank(group, group_rank_id):
This method should be used after init().
Args:
group (str): The communication group to work on. The group is created by create_group
or the default world communication group.
group (str): The communication group to work on. The group is created by create_group.
group_rank_id (int): A rank ID in the communication group.
Returns:
@ -269,8 +268,7 @@ def get_group_rank_from_world_rank(world_rank_id, group):
Args:
world_rank_id (int): A rank ID in the world communication group.
group (str): The communication group to work on. The group is created by create_group
or the default world communication group.
group (str): The communication group to work on. The group is created by create_group.
Returns:
int, the rank ID in the user communication group.