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

Method fun

python/tests/ring_test_distributed.py:120–121  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

118
119 def test_all_gather_vjp(self):
120 def fun(x):
121 return mx.distributed.all_gather(x)[0]
122
123 dfdx = mx.grad(fun)(mx.array(1.0))
124 if mx.distributed.init().rank() == 0:

Callers

nothing calls this directly

Calls 1

all_gatherMethod · 0.45

Tested by

no test coverage detected