Skip to content

Commit

Permalink
fix broken torch imports
Browse files Browse the repository at this point in the history
Reviewed By: diego-urgell

Differential Revision: D62662370

fbshipit-source-id: 7a86367ac692a0b81e4bc5fd81d2b917c7660ee6
  • Loading branch information
JKSenthil authored and facebook-github-bot committed Sep 16, 2024
1 parent d68b3ec commit 993d524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/gpu_tests/test_snapshot_dtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

import torch
from torch import distributed as dist, nn
from torch.distributed import init_device_mesh
from torch.distributed._tensor import DeviceMesh
from torch.distributed._tensor.device_mesh import init_device_mesh
from torch.distributed.fsdp import (
FullyShardedDataParallel as FSDP,
ShardingStrategy,
Expand Down
2 changes: 1 addition & 1 deletion torchsnapshot/io_preparers/dtensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
)

try:
from torch.distributed._tensor._utils import compute_local_shape_and_global_offset
from torch.distributed.tensor._utils import compute_local_shape_and_global_offset

except ImportError:

Expand Down

0 comments on commit 993d524

Please sign in to comment.