# tensorplay.distributed.distributed_c10d.get_group_rank

Source: https://www.tensorplay.cn/docs/generated/tensorplay.distributed.distributed_c10d.get_group_rank.html

# tensorplay.distributed.distributed_c10d.get_group_rank

tensorplay.distributed.distributed_c10d.get_group_rank(group: ProcessGroup, global_rank: [int](https://docs.python.org/3/library/functions.html#int)) &#x2192; [int](https://docs.python.org/3/library/functions.html#int)[[source]](../_modules/tensorplay/distributed/distributed_c10d.html#get_group_rank)

Translate a global rank into a group rank (torch parity).
