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

Method outer

python/tests/test_vmap.py:650–657  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

648 mem_pre = 0
649
650 def outer():
651 d = {}
652
653 def f(x):
654 return d["x"]
655
656 d["f"] = mx.vmap(f)
657 d["x"] = mx.array([0] * 1000)
658
659 for _ in range(5):
660 outer()

Callers

nothing calls this directly

Calls 2

arrayMethod · 0.60
vmapMethod · 0.45

Tested by

no test coverage detected