1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 Fábio Henrique de Lima Silva (fhl.bsb@gmail.com) All rights reserved.
//! Loading module for the NAM ecosystem.
//!
//! Contains parsers for .nam (JSON) and .namb (binary) formats.
//! The entire loading process occurs **outside** the RT thread to
//! avoid any unwanted allocation during audio processing.
/// Model construction: assembles `StaticModel` instances from parsed weight data.
/// Architecture-specific model dispatcher: routes parsed weights to concrete model builders.
/// Struct, constants, and Debug impl for `LoadedModelPair`.
/// `.nam` (JSON) format parser: schema validation, topology parsing, activation detection.
/// `.namb` (binary) format: header parsing, layout decoding, buffer-to-model construction.
/// `.namb` encoder: serializes `NamModelData` into the binary compact profile format.
/// Weight matrix transposition utilities for interleaved memory layouts.
pub use load_and_build_model;
pub use *;
/// Controls loading behaviour and model initialization.
///
/// Produced by the main/UI thread and consumed by the loader before passing
/// the ready-to-render model pair to the RT thread.