Skip to content
Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Nodes

Wiki hero

Generated with Grok Build: Grok 4.5 · xAI Imagine (/imagine)

src/nodes.rs — closed NirNode enum. Wire names via type_name() must match io::wire::WIRE_TYPES.

Wire types (19)

Wire string Variant
Input NirNode::Input
Output NirNode::Output
Affine Affine
Linear Linear
Scale Scale
Conv1d / Conv2d Conv1d / Conv2d
CubaLI / CubaLIF CubaLi / CubaLif
Delay Delay
Flatten Flatten
I / IF / LI / LIF I / If / Li / Lif
SumPool2d / AvgPool2d pooling
Threshold Threshold
NIRGraph nested Graph(Box<NirGraph>)

Upstream Identity is intentionally absent (not in Python serializer registry).

Aliases that are NOT wire types

Reject / never write: CurrLIF, Convolution, Integrator, SumPooling, …

Optional fields

Examples: v_reset, w_in may be absent on wire; reader fills Python-compatible defaults so in-memory graphs match nir.read.

Padding

Symbolic modes "same" / "valid" as strings; explicit integer padding as arrays.


Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: df72fc9 (main)

Clone this wiki locally