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

Method test_roll_errors

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

Source from the content-addressed store, hash-verified

3091 self.assertTrue(mx.array_equal(y1, y2).item())
3092
3093 def test_roll_errors(self):
3094 x = mx.array([])
3095 result = mx.roll(x, [0], [0])
3096 self.assertTrue(mx.array_equal(result, x))
3097
3098 def test_real_imag(self):
3099 x = mx.random.uniform(shape=(4, 4))

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected