mirror of
https://github.com/ml-explore/mlx.git
synced 2025-10-18 15:28:16 +08:00
fix build w/ flatten (#195)
This commit is contained in:
@@ -906,7 +906,7 @@ class TestArray(mlx_tests.MLXTestCase):
|
||||
# Check slice assign with negative indices works
|
||||
a = mx.zeros((5, 5), mx.int32)
|
||||
a[2:-2, 2:-2] = 4
|
||||
self.assertEquals(a[2, 2].item(), 4)
|
||||
self.assertEqual(a[2, 2].item(), 4)
|
||||
|
||||
def test_slice_negative_step(self):
|
||||
a_np = np.arange(20)
|
||||
|
Reference in New Issue
Block a user