MCPcopy
hub / github.com/dask/dask / chunks

Method chunks

dask/array/_array_expr/_reductions.py:296–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

294
295 @cached_property
296 def chunks(self):
297 chunks = [
298 (
299 tuple(1 for p in partition_all(self.split_every[i], c))
300 if i in self.split_every
301 else c
302 )
303 for (i, c) in enumerate(self.array.chunks)
304 ]
305
306 if not self.keepdims:
307 out_axis = [i for i in range(self.array.ndim) if i not in self.split_every]
308 getter = lambda k: get(out_axis, k)
309 chunks = list(getter(chunks))
310 return tuple(chunks)
311
312 def _layer(self):
313 x = self.array

Callers

nothing calls this directly

Calls 2

getterFunction · 0.85
getFunction · 0.50

Tested by

no test coverage detected