MCPcopy Create free account
hub / github.com/dask/dask / _layer

Method _layer

dask/array/_array_expr/_gufunc.py:569–577  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

567 return normalize_chunks(output_chunks, self._shape, dtype=self._meta.dtype)
568
569 def _layer(self):
570 core_chunkinds = len(self.ocd) * (0,)
571 leaf_dsk = {
572 (self._name,)
573 + key[1:]
574 + core_chunkinds: ((getitem, key, self.i) if self.nout else key)
575 for key in list(flatten(self.array.__dask_keys__()))
576 }
577 return leaf_dsk
578
579
580class gufunc:

Callers

nothing calls this directly

Calls 2

flattenFunction · 0.90
__dask_keys__Method · 0.45

Tested by

no test coverage detected