(self)
| 220 | np.testing.assert_equal(t.shard(devices_2, axis=axis).sum().item(), 10) |
| 221 | |
| 222 | def test_allreduce_naive(self): |
| 223 | with Context(RING=0): |
| 224 | a,b = _test_allreduce(Tensor.rand(256, 256)) |
| 225 | np.testing.assert_almost_equal(a.numpy(), b.numpy(), decimal=5) |
| 226 | |
| 227 | def test_allreduce_ring(self): |
| 228 | with Context(RING=2): |
nothing calls this directly
no test coverage detected