hydra.overlay.python.lib.logic module

Python implementations of hydra.overlay.python.lib.logic (logic and control flow) primitives.

hydra.overlay.python.lib.logic.and_(x: bool, y: bool) bool

Compute the logical AND of two boolean values.

hydra.overlay.python.lib.logic.if_else(b: bool, x: Callable[[], A], y: Callable[[], A]) A
hydra.overlay.python.lib.logic.if_else(b: bool, x: A, y: A) A

Compute a conditional expression.

hydra.overlay.python.lib.logic.not_(x: bool) bool

Compute the logical NOT of a boolean value.

hydra.overlay.python.lib.logic.or_(x: bool, y: bool) bool

Compute the logical OR of two boolean values.