Skip to content

Commit 3f2af6b

Browse files
committed
remove mistakenly added assert
1 parent 95be731 commit 3f2af6b

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

test/spmd/test_xla_sharding.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1189,10 +1189,6 @@ def test_mark_shard_scalar(self):
11891189
self.assertIsInstance(shard.indices, type(Ellipsis))
11901190
self.assertEqual(shard.replica_id, i)
11911191

1192-
# It looks like mesh_shape attribute is never implemented.
1193-
with self.assertRaises(AttributeError):
1194-
xt.mesh_shape
1195-
11961192
def test_global_mesh(self):
11971193
expected_mesh = self._get_mesh((1, self.n_devices))
11981194
xs.set_global_mesh(expected_mesh)

torch_xla/distributed/spmd/debugging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import functools
33
import string
44
import sys
5-
from typing import Any, Callable, Optional, Union, Tuple
5+
from typing import Any, Callable, Optional, Union
66
import weakref
77

88
import numpy as np

0 commit comments

Comments
 (0)