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
43
44
45
46
47
48
49
// SPDX-License-Identifier: Apache-2.0
// Copyright (c) 2026 Fábio Henrique de Lima Silva (fhl.bsb@gmail.com) All rights reserved.
//! Model Dispatcher — converts `NamModelData` (JSON/NAMB parsers) into `Box<StaticModel>`.
//!
//! The dispatcher reads the architecture signature from the model data and routes
//! to the appropriate variant-specific builder (WaveNet or LSTM),
//! ensuring the resulting `Box<StaticModel>` is ready for injection into the
//! DSP thread via SPSC without any allocation on the RT path.
use crateNamModelData;
use crateStaticModel;
use bail;
// =============================================================================
// Public Entry Point
// =============================================================================
/// Builds a `Box<StaticModel>` from the raw parsed data.
///
/// Branches by architecture (`"WaveNet"` / `"LSTM"` / `"SlimmableContainer"`) and delegates to the
/// specialized builders with const generics.
/// Checked arithmetic helpers (F2 — DoS/OOM prevention)
pub
/// SlimmableContainer model builder module
/// ConvNet model builder module
/// Linear model builder module
/// LSTM model builder module
/// WaveNet model builder module
/// WeightCursor — Deterministic sequential reading of flattened weights
pub use WeightCursor;