mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
Migrate from Tuple -> tuple in torch/distributed (#144258)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/144258 Approved by: https://github.com/aorenste
This commit is contained in:
committed by
PyTorch MergeBot
parent
184549b2d7
commit
08be9ec312
@ -320,7 +320,7 @@ class _RoleInstanceInfo:
|
||||
return -1
|
||||
|
||||
@staticmethod
|
||||
def find_role_boundaries(roles_infos: List, role: str) -> Tuple[int, int]:
|
||||
def find_role_boundaries(roles_infos: List, role: str) -> tuple[int, int]:
|
||||
start_idx, end_idx = -1, -1
|
||||
for idx, role_info in enumerate(roles_infos):
|
||||
if role_info.role == role:
|
||||
|
Reference in New Issue
Block a user