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

Method test_array_eq_array

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

Source from the content-addressed store, hash-verified

122
123class TestEquality(mlx_tests.MLXTestCase):
124 def test_array_eq_array(self):
125 a = mx.array([1, 2, 3])
126 b = mx.array([1, 2, 3])
127 c = mx.array([1, 2, 4])
128 self.assertTrue(mx.all(a == b))
129 self.assertFalse(mx.all(a == c))
130
131 def test_array_eq_scalar(self):
132 a = mx.array([1, 2, 3])

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected