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

Function normalize_to_array

dask/array/utils.py:20–24  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

18
19
20def normalize_to_array(x):
21 if is_cupy_type(x):
22 return x.get()
23 else:
24 return x
25
26
27def meta_from_array(x, ndim=None, dtype=None):

Callers 1

allcloseFunction · 0.85

Calls 2

is_cupy_typeFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…