!21930 code docs communication

Merge pull request !21930 from yao_yf/code_docs_communication_api_note_fix
This commit is contained in:
i-robot 2021-08-17 04:04:27 +00:00 committed by Gitee
commit 985b773fd6
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.