Skip to content

Commit ce4f052

Browse files
committed
skip test
1 parent ef665e9 commit ce4f052

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/spmd/test_xla_sharding.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ def test_hybrid_mesh_shape(self):
464464
self.assertEqual(mesh.get_logical_mesh().shape,
465465
hybrid_mesh.get_logical_mesh().shape)
466466

467+
@unittest.skipUnless(
468+
xm.get_xla_supported_devices("TPU"),
469+
f"Requires PJRT_DEVICE set to `TPU`.")
467470
@patch('torch_xla.runtime.global_device_attributes')
468471
def test_hybrid_mesh(self, device_attributes_mock):
469472
# mock device attributes for 2 slices of v4-8

0 commit comments

Comments
 (0)