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

Method outer

python/tests/test_compile.py:289–292  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

287
288 def test_transform_over_eval_compiled(self):
289 def outer(x):
290 y = mx.exp(mx.abs(x))
291 mx.eval(y)
292 return y.sum()
293
294 x = mx.array([2.0, -1.0, 0.5])
295 dfdx = mx.grad(outer)(x)

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.60
evalMethod · 0.45

Tested by

no test coverage detected