Skip to content
heliaEDGE
Reference
HELIA

golden

Golden files (helia-model-zoo/golden@2) from an exported streaming model.

Machine-readable model

  • golden_npzfunctionA golden@2 sequence for a streaming model: frames are consecutive calls of its signal input.
function

A golden@2 sequence for a streaming model: frames are consecutive calls of its signal input.

helia_edge/export/golden.py:11

golden_npz(content: bytes, frames: npt.NDArray, resets: Collection[int] = ()) -> bytes

A golden@2 sequence for a streaming model: frames are consecutive calls of its signal input.

The model runs with LiteRT’s reference kernels, each state_out_k fed back as state_in_k and the states reset to zero at the steps in resets. The NPZ holds input_i and output_i in subgraph order, as raw (quantized) values.

Errors raised by golden_npz
TypeDescription
ValueErrorIf the model has more than one input that is not a state.