MCPcopy Create free account
hub / github.com/ml-explore/mlx / test_tuple_equals_array

Method test_tuple_equals_array

python/tests/test_array.py:152–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

150 self.assertFalse(a == c)
151
152 def test_tuple_equals_array(self):
153 a = mx.array([1, 2, 3])
154 b = (1, 2, 3)
155 c = (1, 2, 4)
156
157 # mlx array equality returns false if is compared with any kind of
158 # object which is not an mlx array
159 self.assertFalse(a == b)
160 self.assertFalse(a == c)
161
162
163class TestInequality(mlx_tests.MLXTestCase):

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected