Skip to main content

Module types

Module types 

Source
Expand description

Shared value types for NIR tensors and metadata.

Python NIR stores parameters as numpy.ndarray. This module provides a compact, owned representation suitable for an in-memory Rust IR. HDF5 decoding (v0.3) will map wire arrays into Tensor.

Structs§

Tensor
Dense, row-major tensor (shape + contiguous typed data).

Enums§

DType
Element type of a contiguous tensor buffer.
MetadataValue
Free-form metadata values attached to graphs and nodes.
TensorData
Contiguous numeric payload backing a Tensor.

Type Aliases§

MetadataMap
Free-form metadata map (Python NIR metadata: Dict[str, Any]).