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

Method test_tuple_not_equals_array

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

Source from the content-addressed store, hash-verified

205 self.assertFalse(mx.metal.is_available())
206
207 def test_tuple_not_equals_array(self):
208 a = mx.array([1, 2, 3])
209 b = (1, 2, 3)
210 c = (1, 2, 4)
211
212 # mlx array inequality returns true if is compared with any kind of
213 # object which is not an mlx array
214 self.assertTrue(a != b)
215 self.assertTrue(a != c)
216
217 def test_obj_inequality_array(self):
218 str_ = "hello"

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected