We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d68b3ec commit 993d524Copy full SHA for 993d524
tests/gpu_tests/test_snapshot_dtensor.py
@@ -13,8 +13,8 @@
13
14
import torch
15
from torch import distributed as dist, nn
16
+from torch.distributed import init_device_mesh
17
from torch.distributed._tensor import DeviceMesh
-from torch.distributed._tensor.device_mesh import init_device_mesh
18
from torch.distributed.fsdp import (
19
FullyShardedDataParallel as FSDP,
20
ShardingStrategy,
torchsnapshot/io_preparers/dtensor.py
@@ -32,7 +32,7 @@
32
)
33
34
try:
35
- from torch.distributed._tensor._utils import compute_local_shape_and_global_offset
+ from torch.distributed.tensor._utils import compute_local_shape_and_global_offset
36
37
except ImportError:
38
0 commit comments