Skip to content

Commit 1b88476

Browse files
wanchaolpytorchmergebot
authored andcommitted
[dtensor] PART 4: move remaining DTensor ops to core distributed (#88550)
This PR moves the view related DTensor ops to core distributed, tests will be add in follow up PRs part of #88838 Pull Request resolved: #88550 Approved by: https://github.com/fduwjj
1 parent 2dcf097 commit 1b88476

File tree

3 files changed

+709
-2
lines changed

3 files changed

+709
-2
lines changed

torch/distributed/_tensor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
# Import all builtin dist tensor ops
12-
# import torch.distributed._tensor.ops
12+
import torch.distributed._tensor.ops
1313

1414

1515
def distribute_tensor(

torch/distributed/_tensor/ops/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
from .tensor_ops import * # noqa: F403
55
from .tp_sharding_ops import * # noqa: F403
66
from .pointwise_ops import * # noqa: F403
7-
# from .view_ops import * # noqa: F403
7+
from .view_ops import * # noqa: F403

0 commit comments

Comments
 (0)