MCPcopy Create free account
hub / github.com/dask/dask / test_random_Generator_processes

Function test_random_Generator_processes

dask/array/tests/test_cupy_random.py:175–183  ·  view source on GitHub ↗
(backend)

Source from the content-addressed store, hash-verified

173
174@pytest.mark.parametrize("backend", ["cupy", "numpy"])
175def test_random_Generator_processes(backend):
176 with config.set({"array.backend": backend}):
177 # Check that matching seeds produce consistent results
178 # with scheduler="processes"
179 state = da.random.default_rng(5)
180 x = state.standard_normal(size=(2, 3), chunks=3)
181 state = da.random.default_rng(5)
182 y = state.standard_normal(size=(2, 3), chunks=3)
183 assert_eq(x, y, scheduler="processes")
184
185
186def test_cupy_unsupported():

Callers

nothing calls this directly

Calls 3

assert_eqFunction · 0.90
setMethod · 0.80
standard_normalMethod · 0.45

Tested by

no test coverage detected