#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#[macro_use]
extern crate derive_new;
pub use serde;
pub mod config;
#[cfg(feature = "std")]
pub mod data;
#[cfg(feature = "std")]
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;
pub mod backend;
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(feature = "std")]
#[cfg(test)]
pub type TestAutodiffBackend = burn_autodiff::Autodiff<TestBackend>;
pub type LearningRate = f64; pub mod prelude {
pub use crate::{
config::Config,
module::Module,
nn,
tensor::{
backend::Backend, Bool, Device, ElementConversion, Float, Int, Shape, Tensor,
TensorData,
},
};
}