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

Method test_large_indices

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

Source from the content-addressed store, hash-verified

2259 self.assertEqual(x.real.item(), 1.0)
2260
2261 def test_large_indices(self):
2262 x = mx.array([0, 1, 2])
2263 with self.assertRaises(ValueError):
2264 x[: 2**32]
2265 with self.assertRaises(ValueError):
2266 x[2**32]
2267
2268
2269if __name__ == "__main__":

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected