()
| 3802 | |
| 3803 | |
| 3804 | def test_to_delayed(): |
| 3805 | x = da.random.default_rng().random((4, 4), chunks=(2, 2)) |
| 3806 | y = x + 10 |
| 3807 | |
| 3808 | [[a, b], [c, d]] = y.to_delayed() |
| 3809 | assert_eq(a.compute(), y[:2, :2]) |
| 3810 | |
| 3811 | s = 2 |
| 3812 | x = da.from_array(np.array(s), chunks=0) |
| 3813 | a = x.to_delayed()[tuple()] |
| 3814 | assert a.compute() == s |
| 3815 | |
| 3816 | |
| 3817 | def test_to_delayed_optimize_graph(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…