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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// SPDX-License-Identifier: AGPL-3.0-or-later
//! High-level Neural Network Training API
//!
//! Production-ready interface for building and training deep neural networks.
//! Wraps barraCuda operations into an ergonomic, PyTorch-like API with full
//! deep debt compliance.
//!
//! # Deep Debt Principles
//!
//! - **Zero unsafe code**: 100% safe Rust throughout
//! - **No hardcoding**: All parameters runtime-configurable
//! - **Capability-based**: Discovers hardware at runtime
//! - **No mocks**: All production implementations
//! - **Self-knowledge**: Runtime capability discovery
//! - **Modern idioms**: Async/await, builder patterns
//!
//! # Module Structure
//!
//! - `config` - Network configuration and hardware preferences
//! - `layer` - Layer types and definitions
//! - `optimizer` - Optimization algorithms
//! - `loss` - Loss function implementations
//! - `metrics` - Training and evaluation metrics
//!
//! # Available Types
//!
//! ```rust,ignore
//! use barracuda::nn::{Layer, Optimizer, LossFunction, NetworkConfig};
//!
//! let config = NetworkConfig::default();
//! let layers = vec![
//! Layer::Linear { in_features: 784, out_features: 128 },
//! Layer::ReLU,
//! Layer::Linear { in_features: 128, out_features: 10 },
//! ];
//! let optimizer = Optimizer::Adam { lr: 0.001, betas: (0.9, 0.999), eps: 1e-8 };
//! let loss = LossFunction::CrossEntropy;
//! ```
// S66: Blanket #![allow(dead_code)] removed. Individual items annotated where
// genuinely pending implementation.
// Re-export core types
pub use ;
pub use Layer;
pub use LossFunction;
pub use ;
pub use Optimizer;
pub use ;
pub use ;
pub use ;
pub use SimpleMlp;