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
// SPDX-License-Identifier: MIT OR Apache-2.0
//! # cortex-hybrid
//!
//! Backend-neutral ANN stage layer plus a deterministic `Vec<f32>` reference
//! backend for hybrid ANN/SNN research. Checkpoint parsing stays in
//! `engram-parser`. Placement and session orchestration stay in
//! `hybrid-fusion`. External ML engines are optional adapters, not core types.
//!
//! ## Modules
//!
//! | Module | Role |
//! |--------|------|
//! | [`stage`] | Backend-neutral ANN stage contracts; [`stage::ReferenceExecutor`] is the reference backend |
//! | [`adapter`] | External-adapter capability contract, plus optional Candle `AnnExecutor` |
//! | [`tensor`] | Reference-backend `Tensor`, fallible construction, core ops |
//! | [`transformer`] | Reference-backend transformer blocks |
//! | [`moe`] | Reference-backend MoE routing; checkpoints come from `engram-parser` 0.3.0 |
//! | [`snn`] | SNN execution contract + optional crate-backed adapters |
//! | [`types`] | Shared types used by `moe` |
//! | [`error`] | `CortexError` unified error type |
//!
//! Panic-style constructors and ops (`Tensor::from_vec`, `ops::matmul`, …)
//! remain as pre-1.0 compatibility wrappers. New code should use
//! [`Tensor::try_from_vec`] and the `try_*` functions in [`crate::tensor::ops`].
pub use ;
pub use ;
pub use Tensor;