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

Method lower_completely

dask/_expr.py:502–527  ·  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

500 return lowered.setdefault(self._name, out)
501
502 def lower_completely(self) -> Expr:
503 """Lower an expression completely
504
505 This calls the ``lower_once`` method in a loop
506 until nothing changes. This function does not
507 apply any other optimizations (like ``simplify``).
508
509 Returns
510 -------
511 expr:
512 output expression
513
514 See Also
515 --------
516 Expr.lower_once
517 Expr._lower
518 """
519 # Lower until nothing changes
520 expr = self
521 lowered: dict = {}
522 while True:
523 new = expr.lower_once(lowered)
524 if new._name == expr._name:
525 break
526 expr = new
527 return expr
528
529 def _lower(self):
530 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