(self)
| 162 | |
| 163 | class 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]) |