MCPcopy
hub / github.com/dask/dask / _broadcast_trick_inner

Function _broadcast_trick_inner

dask/array/wrap.py:136–140  ·  view source on GitHub ↗
(func, shape, meta=(), *args, **kwargs)

Source from the content-addressed store, hash-verified

134
135@curry
136def _broadcast_trick_inner(func, shape, meta=(), *args, **kwargs):
137 # cupy-specific hack. numpy is happy with hardcoded shape=().
138 null_shape = () if shape == () else 1
139
140 return np.broadcast_to(func(meta, *args, shape=null_shape, **kwargs), shape)
141
142
143def broadcast_trick(func):

Callers 1

broadcast_trickFunction · 0.85

Calls 1

funcFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…