8000 Update on "[dtensor] PART 7: move remaining DTensor tests to core dis… · pytorch/pytorch@79ce74f · GitHub
[go: up one dir, main page]

Skip to content

Commit 79ce74f

Browse files
committed
Update on "[dtensor] PART 7: move remaining DTensor tests to core distributed"
This PR moves remaining tests, i.e. tensor_ops, op db tests to core distributed part of #88838 [ghstack-poisoned]
2 parents dc5c689 + 16c4477 commit 79ce74f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/distributed/_tensor/test_dtensor_ops.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
TEST_SKIPS,
3131
DTensorConverter,
3232
DEVICE_TYPE,
33-
NUM_DEVICES,
3433
)
3534

3635
# rewrite common size variables to sth can be sharded evenly
@@ -659,7 +658,7 @@ def check_dtensor_func(test_case, test_func, opinfo, dry_run=False):
659658
class TestDTensorOps(DTensorTestBase):
660659
@property
661660
def world_size(self) -> int:
662-
return NUM_DEVICES
661+
return 4
663662

664663
# only allow float dytpe for now, we can relax this constraint
665664
# when feel necessary later (i.e when adding quantization support).

0 commit comments

Comments
 (0)
0