MCPcopy Index your code
hub / github.com/tinygrad/tinygrad / test_allreduce_ring

Method test_allreduce_ring

test/backend/test_multitensor.py:227–230  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225 np.testing.assert_almost_equal(a.numpy(), b.numpy(), decimal=5)
226
227 def test_allreduce_ring(self):
228 with Context(RING=2):
229 a,b = _test_allreduce(Tensor.rand(256, 256))
230 np.testing.assert_almost_equal(a.numpy(), b.numpy(), decimal=5)
231
232 def test_multiple_to_single_device(self):
233 kernel_counts = {}

Callers

nothing calls this directly

Calls 4

ContextClass · 0.90
_test_allreduceFunction · 0.85
randMethod · 0.80
numpyMethod · 0.45

Tested by

no test coverage detected