(self)
| 50 | grad.realize() |
| 51 | |
| 52 | def test_shard(self): |
| 53 | X = Tensor.ones(256).contiguous().realize() |
| 54 | X.shard_(devices_2, 0) |
| 55 | for lb in X.uop.src: |
| 56 | assert lb.shape == (128,) |
| 57 | (X + X).realize() |
| 58 | |
| 59 | @unittest.expectedFailure # TODO: fix |
| 60 | def test_shard_empty(self): |
nothing calls this directly
no test coverage detected