[BE][DTensor] move torch.distributed._tensor import to torch.distributed.tensor in test files (#153225)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/153225
Approved by: https://github.com/kwen2501, https://github.com/fegin
This commit is contained in:
Xilun Wu
2025-05-09 01:50:00 -07:00
committed by PyTorch MergeBot
parent 3976e52264
commit cbb03e6971
59 changed files with 182 additions and 179 deletions

View File

@ -8,8 +8,10 @@ from unittest import skip
import torch
import torch.utils._pytree as pytree
from torch import Tensor
from torch.distributed._tensor import DeviceMesh, distribute_tensor, DTensor
from torch.distributed._tensor.placement_types import (
from torch.distributed.tensor import (
DeviceMesh,
distribute_tensor,
DTensor,
Partial,
Placement,
Replicate,