8000 [dtensor] PART 6: move DTensor op tests to core distributed by wanchaol · Pull Request #88551 · pytorch/pytorch · GitHub
[go: up one dir, main page]

Skip to content

[dtensor] PART 6: move DTensor op tests to core distributed #88551

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 10 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update on "[dtensor] PART 6: move DTensor op tests to core distributed"
This PR moves DTensor op tests to core distributed, including
prop_rule, pointwise op, matrix op tests, etc.

[ghstack-poisoned]
  • Loading branch information
wanchaol committed Nov 7, 2022
commit 355e48ab6f9cd6d7019dc9895a20d78a0bf34492
6 changes: 6 additions & 0 deletions test/distributed/_tensor/test_common_rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ class CommonRulesTest(DTensorTestBase):
def parse_schema(self, schema_str):
return FunctionSchema.parse(schema_str)

@property
def world_size(self) -> int:
# hard code world size to 4 as we need to test
# at least with 2d mesh
return 4

@with_comms
def test_einop_basic_propagation(self):
# plain einsum, mm
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0