TransientNode

Contents

TransientNode#

class liesel.model.TransientNode(*inputs, _name='', _needs_seed=False, convert='default', **kwinputs)[source]#

Bases: Node

A node that does not cache its value.

A transient node is outdated if and only if at least one of its input nodes is outdated. The outdated property checks this condition on-the-fly.

Methods

update()

Does nothing.

Attributes

outdated

Whether the node is outdated.

state

The state of the node with the value None.

value

The value of the node.

monitor

Whether the node should be monitored by an inference algorithm.