Skip to content

Commit

Permalink
fix typing (#3419)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvpatel2000 committed Jun 21, 2024
1 parent 7c7f6de commit 3a234de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer/trainer/_patch_pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +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
from torch.utils._typing_utils import not_none
from torch.distributed.device_mesh import DeviceMesh, _mesh_resources

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

0 comments on commit 3a234de

Please sign in to comment.