Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
20
def
normalize_to_array(x):
21
if
is_cupy_type(x):
22
return
x.get()
23
else
:
24
return
x
25
26
27
def
meta_from_array(x, ndim=None, dtype=None):
Callers
1
allclose
Function · 0.85
Calls
2
is_cupy_type
Function · 0.90
get
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…