pub mod config;
pub mod data;
pub mod layers;
pub mod models;
pub mod training;
pub mod utils;
pub use config::TRMConfig;
pub use models::TinyRecursiveModel;
#[derive(Debug, thiserror::Error)]
pub enum TRMError {
#[error("Candle error: {0}")]
Candle(#[from] candle_core::Error),
#[error("Configuration error: {0}")]
Config(String),
#[error("Model error: {0}")]
Model(String),
#[error("Training error: {0}")]
Training(String),
#[error("IO error: {0}")]
Io(#[from] std::io::Error),
#[error("JSON error: {0}")]
Json(#[from] serde_json::Error),
}
pub type Result<T> = std::result::Result<T, TRMError>;