Skip to content

Commit 25147a2

Browse files
committed
Update test_mark_shard_scalar to reflect mesh_shape implementation
1 parent 91714d4 commit 25147a2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/spmd/test_xla_sharding.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,9 +1162,7 @@ def test_mark_shard_scalar(self):
11621162
self.assertIsInstance(shard.indices, type(Ellipsis))
11631163
self.assertEqual(shard.replica_id, i)
11641164

1165-
# It looks like mesh_shape attribute is never implemented.
1166-
with self.assertRaises(AttributeError):
1167-
xt.mesh_shape
1165+
# Removed mesh shape assert now that it has been implemented
11681166

11691167
def test_global_mesh(self):
11701168
expected_mesh = self._get_mesh((1, self.n_devices))

0 commit comments

Comments
 (0)