View source on GitHub |
Keeps track of variables and their values during propagation.
oryx.core.interpreters.propagate.Environment(
cell_type, jaxpr
)
Methods
read
read(
var: VarOrLiteral
) -> oryx.core.interpreters.propagate.Cell
read_state
read_state(
eqn: oryx.core.interpreters.propagate.Equation
) -> State
write
write(
var: VarOrLiteral,
cell: oryx.core.interpreters.propagate.Cell
) -> oryx.core.interpreters.propagate.Cell
write_state
write_state(
eqn: oryx.core.interpreters.propagate.Equation
,
state: State
) -> None
__contains__
__contains__(
var: VarOrLiteral
)
__getitem__
__getitem__(
var: VarOrLiteral
) -> oryx.core.interpreters.propagate.Cell