node
Class info¶
Classes¶
| Name | Children | Inherits |
|---|---|---|
| Node datacook.engine.node One step of the tree. Never holds a frame: the `Session` computes and caches those. |
🛈 DocStrings¶
Tree nodes: immutable snapshots of (parents, op record, metadata).
Node
dataclass
¶
One step of the tree. Never holds a frame: the Session computes and caches those.
generation changes whenever the node's data changes (its params or an ancestor's
params were edited); results computed for an older generation are stale. The session
draws generations from one monotonic counter, so a value is never reused.
Nodes are immutable: the session replaces them on edits, so a Node handed to
another thread stays consistent.