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

Method test_array_ne_array

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

Source from the content-addressed store, hash-verified

162
163class TestInequality(mlx_tests.MLXTestCase):
164 def test_array_ne_array(self):
165 a = mx.array([1, 2, 3])
166 b = mx.array([1, 2, 3])
167 c = mx.array([1, 2, 4])
168 self.assertFalse(mx.any(a != b))
169 self.assertTrue(mx.any(a != c))
170
171 def test_array_ne_scalar(self):
172 a = mx.array([1, 2, 3])

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected