Skip to content
Raul Cardenas Montoya edited this page Sep 19, 2026 · 10 revisions

nir-rs

DeepWiki

Wiki hero

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

Pure-Rust implementation of the Neuromorphic Intermediate Representation (NIR) — the standard interchange format for spiking neural networks.

Area Capability
Graph model NirGraph — insertion-ordered nodes, directed edges, optional nesting (no nesting-depth stack growth)
Nodes Closed NirNode enum, wire-exact type strings (CubaLIF, Conv2d, …)
File I/O (hdf5 feature) io::read / write with decoded-allocation budgets, atomic writes, opt-in version policy + read budgets
serde (serde feature) Debug/export Serialize / Deserialize for graph types
Validation validate_structure (heap-allocated, MAX_NESTING_DEPTH = 1024); opt-in validate_parameters (conv/pool invariants)
Testing Vendored Python-produced fixtures, Hugging Face SNN→NIR corpus, proptest + cargo-fuzz
CI Multi-OS matrix (Linux/macOS/Windows), cargo package artifact checks, public-API semver gate

Mirrored from Devin DeepWiki (generated 2026-09-19, commit b4dc7835, branch main) by Devin (Cognition) against main @ b4dc783. Source: Devin wiki

Start here

Section What's inside
1. Overview NIR serves as a framework-agnostic graph format for Spiking Neural Networks (SNNs)—acting as an equivalent to…
2. Core Graph Model The nir-rs crate provides a typed, in-memory representation of the Neuromorphic Intermediate Representation (N…
3. HDF5 I/O Layer The io module provides the implementation for reading and writing .nir files, the official HDF5-based intercha…
4. Testing and Quality Assurance The nir-rs project employs a multi-layered testing strategy designed to ensure wire-format fidelity with the P…
5. CI/CD and Infrastructure This section provides a high-level overview of the automation, containerization, quality enforcement, and pack…
6. Compatibility Reference The purpose of this page is to document the fixture-backed compatibility philosophy of nir-rs, the supported N…
7. Glossary This page provides definitions for the domain-specific terminology, architectural concepts, and data structure…
Full index — 27 pages

Last updated: 2026-09-18 Updated by: Devin (Cognition) Package tip reference: b4dc783 (main)

Clone this wiki locally