#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_cfg))]
#![recursion_limit = "256"]
#[macro_use]
extern crate derive_new;
extern crate alloc;
mod optim;
pub use optim::*;
#[cfg(feature = "fused-adamw")]
pub mod fused_adamw;
pub mod grad_clipping;
#[cfg(feature = "std")]
pub mod lr_scheduler;
#[cfg(feature = "std")]
pub mod training;
pub type LearningRate = f64;
#[cfg(all(
test,
not(feature = "test-tch"),
not(feature = "test-wgpu"),
not(feature = "test-cuda"),
not(feature = "test-rocm")
))]
pub type TestBackend = ruda_tensor_host::Host;
#[cfg(all(test, feature = "test-tch"))]
pub type TestBackend = ruda_tensor_tch::LibTorch<f32>;
#[cfg(all(test, feature = "test-wgpu"))]
pub type TestBackend = ruda_tensor_wgpu::Wgpu;
#[cfg(all(test, feature = "test-cuda"))]
pub type TestBackend = ruda_tensor_device::cuda::Cuda;
#[cfg(all(test, feature = "test-rocm"))]
pub type TestBackend = ruda_tensor_rocm::Rocm;
#[cfg(test)]
pub type TestAutodiffBackend = ruda_autodiff::Autodiff<TestBackend>;
#[cfg(all(test, feature = "test-memory-checks"))]
mod tests {
ruda_fusion::memory_checks!();
}