MCPcopy Index your code
hub / github.com/dask/dask / test_uneven_chunks_blockwise

Function test_uneven_chunks_blockwise

dask/array/tests/test_array_core.py:4084–4091  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4082
4083
4084def test_uneven_chunks_blockwise():
4085 rng = da.random.default_rng()
4086 x = rng.random((10, 10), chunks=((2, 3, 2, 3), (5, 5)))
4087 y = rng.random((10, 10), chunks=((4, 4, 2), (4, 2, 4)))
4088 z = da.blockwise(np.dot, "ik", x, "ij", y, "jk", dtype=x.dtype, concatenate=True)
4089 assert z.chunks == (x.chunks[0], y.chunks[1])
4090
4091 assert_eq(z, x.compute().dot(y))
4092
4093
4094def test_warn_bad_rechunking():

Callers

nothing calls this directly

Calls 4

assert_eqFunction · 0.90
randomMethod · 0.45
dotMethod · 0.45
computeMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…