Daniel Strobusch
2023-12-25 19:34:28 +01:00
committed by GitHub
parent a123c3c7d2
commit d58ac083f3
2 changed files with 10 additions and 0 deletions

View File

@@ -84,6 +84,8 @@ class TestArray(mlx_tests.MLXTestCase):
x = mx.array(1)
self.assertEqual(x.size, 1)
self.assertEqual(x.ndim, 0)
self.assertEqual(x.itemsize, 4)
self.assertEqual(x.nbytes, 4)
self.assertEqual(x.shape, [])
self.assertEqual(x.dtype, mx.int32)
self.assertEqual(x.item(), 1)