ruxla_nn/lib.rs
1//! Neural network layers, initializers, optimizers, and weight loading.
2//!
3//! The layers follow `flax.linen`, so that a model trained in JAX can be
4//! written again in Rust, load its weights ([`Weights`]), and run natively or
5//! with XLA, with the same results and, when traced, the same IR as Flax.
6
7pub mod init;
8mod layers;
9mod model;
10mod msgpack;
11pub mod optim;
12mod weights;
13
14pub use layers::{Conv, Dense, LayerNorm, avg_pool, max_pool, min_pool, relu, tanh};
15pub use model::{ExportedModel, ModelError};
16pub use weights::{Weights, WeightsError};