(self)
| 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)) |