We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1120930 commit 96ea9beCopy full SHA for 96ea9be
torchft/process_group_test.py
@@ -29,6 +29,7 @@
29
)
30
from torch.distributed.device_mesh import init_device_mesh
31
from torch.testing._internal.common_distributed import MultiProcessTestCase
32
+from torch.testing._internal.common_utils import run_tests
33
34
from torchft.manager import Manager
35
from torchft.process_group import (
@@ -346,3 +347,7 @@ def test_init_device_mesh(self) -> None:
346
347
manager.num_participants.return_value = 1
348
self.assertEqual(flatten_mesh.size(), self.world_size)
349
self.assertEqual(flatten_mesh.get_local_rank(), dist.get_rank())
350
+
351
352
+if __name__ == "__main__":
353
+ run_tests()
0 commit comments