#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![recursion_limit = "135"]
#[macro_use]
extern crate derive_new;
pub use serde;
pub mod config;
#[cfg(feature = "std")]
pub mod data;
pub mod optim;
#[cfg(feature = "std")]
pub mod lr_scheduler;
pub mod grad_clipping;
pub mod module;
pub mod nn;
pub mod record;
pub mod tensor;
extern crate alloc;
#[cfg(all(
test,
not(feature = "test-tch"),
not(feature = "test-wgpu"),
not(feature = "test-cuda")
))]
pub type TestBackend = burn_ndarray::NdArray<f32>;
#[cfg(all(test, feature = "test-tch"))]
pub type TestBackend = burn_tch::LibTorch<f32>;
#[cfg(all(test, feature = "test-wgpu"))]
pub type TestBackend = burn_wgpu::Wgpu;
#[cfg(all(test, feature = "test-cuda"))]
pub type TestBackend = burn_cuda::Cuda;
#[cfg(test)]
pub type TestAutodiffBackend = burn_autodiff::Autodiff<TestBackend>;
#[cfg(all(test, feature = "test-memory-checks"))]
mod tests {
burn_fusion::memory_checks!();
}
pub type LearningRate = f64;
pub mod prelude {
pub use crate::{
config::Config,
module::Module,
nn,
tensor::{
Bool, Device, ElementConversion, Float, Int, Shape, Tensor, TensorData,
backend::Backend, s,
},
};
}