Revert "[dtensor] move DTensor to public namespace (#133113)"

This reverts commit 2ee6b97464d17fcf4c1fc67c29868fa30d0c16e1.

Reverted https://github.com/pytorch/pytorch/pull/133113 on behalf of https://github.com/wanchaol due to looks like it break some internal type imports ([comment](https://github.com/pytorch/pytorch/pull/133113#issuecomment-2295670911))
This commit is contained in:
PyTorch MergeBot
2024-08-19 05:00:19 +00:00
parent 42e61c783c
commit 35f36363ec
88 changed files with 265 additions and 433 deletions

View File

@ -909,7 +909,7 @@ class TestDTensorPlacementTypes(DTensorTestBase):
]
assert_array_equal(expected_pad_sizes, pad_sizes)
from torch.distributed.tensor._collective_utils import unpad_tensor
from torch.distributed._tensor._collective_utils import unpad_tensor
unpadded_list = [
unpad_tensor(tensor, shard_placement.dim, pad_sizes[i])