Skip to content

Commit

Permalink
Update _patch_pytorch.py (#3402)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Jul 21, 2024
1 parent a1c581d commit fffa335
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions composer/trainer/_patch_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,8 @@ def device_mesh__getitem__(self, mesh_dim_names: Union[str, tuple[str]]) -> 'Dev
return submesh

else:
from torch.distributed.device_mesh import _mesh_resources

def create_child_mesh(
self, parent_mesh: 'DeviceMesh', submesh_dim_names: Tuple[str, ...],
) -> 'DeviceMesh':
Expand Down

0 comments on commit fffa335

Please sign in to comment.