MCPcopy
hub / github.com/dask/dask / rnd_test

Function rnd_test

dask/array/tests/test_cupy_random.py:29–32  ·  view source on GitHub ↗
(func, *args, **kwargs)

Source from the content-addressed store, hash-verified

27 expect = np.ndarray
28
29 def rnd_test(func, *args, **kwargs):
30 a = func(*args, **kwargs)
31 assert type(a._meta) == expect
32 assert_eq(a, a) # Check that _meta and computed arrays match types
33
34 with config.set({"array.backend": backend}):
35 rs = da.random.RandomState(RandomState=rs)

Callers 3

Calls 2

assert_eqFunction · 0.90
funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…