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

Class ArrayChunkShapeDep

dask/layers.py:71–75  ·  view source on GitHub ↗

Produce chunk shapes given a chunk index

Source from the content-addressed store, hash-verified

69
70
71class ArrayChunkShapeDep(ArrayBlockwiseDep):
72 """Produce chunk shapes given a chunk index"""
73
74 def __getitem__(self, idx: tuple[int, ...]):
75 return tuple(chunk[i] for i, chunk in zip(idx, self.chunks))
76
77
78class ArraySliceDep(ArrayBlockwiseDep):

Callers 3

_layerMethod · 0.90

Calls

no outgoing calls

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…