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

Function test_tile_chunks

dask/array/tests/test_creation.py:764–768  ·  view source on GitHub ↗
(shape, chunks, reps)

Source from the content-addressed store, hash-verified

762@pytest.mark.parametrize("shape, chunks", [((10,), (1,)), ((10, 11, 13), (4, 5, 3))])
763@pytest.mark.parametrize("reps", [0, 1, 2, 3, 5, (1,), (1, 2)])
764def test_tile_chunks(shape, chunks, reps):
765 x = np.random.random(shape)
766 d = da.from_array(x, chunks=chunks)
767
768 assert_eq(np.tile(x, reps), da.tile(d, reps))
769
770
771@pytest.mark.parametrize("shape, chunks", [((10,), (1,)), ((10, 11, 13), (4, 5, 3))])

Callers

nothing calls this directly

Calls 2

assert_eqFunction · 0.90
randomMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…