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

Method _layer

dask/array/_array_expr/_creation.py:131–144  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 )
130
131 def _layer(self) -> dict:
132 func = broadcast_trick(self.func)
133 k = self.kwargs.copy()
134 k.pop("meta", None)
135 func = partial(func, meta=self._meta, dtype=self.dtype, **k)
136 out_ind = dep_ind = tuple(range(len(self.shape)))
137 return core_blockwise(
138 func,
139 self._name,
140 out_ind,
141 ArrayChunkShapeDep(self.chunks),
142 dep_ind,
143 numblocks={},
144 )
145
146
147class Ones(BroadcastTrick):

Callers

nothing calls this directly

Calls 4

broadcast_trickFunction · 0.90
ArrayChunkShapeDepClass · 0.90
popMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected