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

Method lower_completely

dask/_expr.py:512–537  ·  view source on GitHub ↗

Lower an expression completely This calls the ``lower_once`` method in a loop until nothing changes. This function does not apply any other optimizations (like ``simplify``). Returns ------- expr: output expression See Also

(self)

Source from the content-addressed store, hash-verified

510 return lowered.setdefault(self._name, out)
511
512 def lower_completely(self) -> Expr:
513 """Lower an expression completely
514
515 This calls the ``lower_once`` method in a loop
516 until nothing changes. This function does not
517 apply any other optimizations (like ``simplify``).
518
519 Returns
520 -------
521 expr:
522 output expression
523
524 See Also
525 --------
526 Expr.lower_once
527 Expr._lower
528 """
529 # Lower until nothing changes
530 expr = self
531 lowered: dict = {}
532 while True:
533 new = expr.lower_once(lowered)
534 if new._name == expr._name:
535 break
536 expr = new
537 return expr
538
539 def _lower(self):
540 return

Callers 11

optimize_untilFunction · 0.80
__dask_graph__Method · 0.80
__dask_keys__Method · 0.80
__dask_postcompute__Method · 0.80
_divisionsMethod · 0.80
test_from_delayed_fusionFunction · 0.80
_cached_keysMethod · 0.80
optimizeMethod · 0.80
__dask_postpersist__Method · 0.80
__dask_graph__Method · 0.80
__dask_keys__Method · 0.80

Calls 1

lower_onceMethod · 0.45

Tested by 1

test_from_delayed_fusionFunction · 0.64