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

Class FinalizeComputeArray

dask/array/_array_expr/_expr.py:274–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272
273
274class FinalizeComputeArray(FinalizeCompute, ArrayExpr):
275 _parameters = ["arr"]
276
277 def chunks(self):
278 return (self.arr.shape,)
279
280 def _simplify_down(self):
281 if self.arr.numblocks in ((), (1,)):
282 return self.arr
283 else:
284 from dask.array._array_expr._rechunk import Rechunk
285
286 return Rechunk(
287 self.arr,
288 tuple(-1 for _ in range(self.arr.ndim)),
289 method="tasks",
290 )

Callers 1

finalize_computeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected