(self)
| 832 | self.assertEqual(out.item(), float("inf")) |
| 833 | |
| 834 | def test_std(self): |
| 835 | x = mx.random.uniform(shape=(5, 5)) |
| 836 | x_np = np.array(x) |
| 837 | self.assertAlmostEqual(mx.std(x).item(), x_np.std().item(), places=6) |
| 838 | |
| 839 | def test_abs(self): |
| 840 | a = mx.array([-1.0, 1.0, -2.0, 3.0]) |