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

Method test_integer_power

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

Source from the content-addressed store, hash-verified

3208 self.assertTrue(mx.all(d == 1.0))
3209
3210 def test_integer_power(self):
3211 x = mx.power(2, mx.array([8, 8, 8, 8, 8, 8, 8, 8]))
3212 self.assertTrue(mx.all(x == 256))
3213
3214 # Doesn't hang
3215 x = mx.power(2, -1)
3216
3217 def test_depends(self):
3218 a = mx.array([1.0, 2.0, 3.0])

Callers

nothing calls this directly

Calls 1

arrayMethod · 0.60

Tested by

no test coverage detected