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

Method test_large_binary

python/tests/test_ops.py:2364–2367  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2362 "This test requires a lot of memory",
2363 )
2364 def test_large_binary(self):
2365 a = mx.ones([1000, 2147484], mx.int8)
2366 b = mx.ones([2147484], mx.int8)
2367 self.assertEqual((a + b)[0, 0].item(), 2)
2368
2369 def test_eye(self):
2370 self.assertCmpNumpy([3], mx.eye, np.eye)

Callers

nothing calls this directly

Calls 1

itemMethod · 0.80

Tested by

no test coverage detected