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

Method test_long_column

python/tests/test_reduce.py:213–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

211 self.assertTrue(np.array_equal(out, ref, equal_nan=True))
212
213 def test_long_column(self):
214 a = (np.random.randn(8192, 64) * 32).astype(np.int32)
215 b = mx.array(a)
216
217 c1 = a.sum(0)
218 c2 = b.sum(0)
219 self.assertTrue(np.all(c1 == c2))
220
221
222if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected