#![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"),))]
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", not(target_os = "macos")))]
pub type TestBackend = burn_wgpu::Wgpu<burn_wgpu::Vulkan, f32, i32>;
#[cfg(all(test, feature = "test-wgpu", target_os = "macos"))]
pub type TestBackend = burn_wgpu::Wgpu<burn_wgpu::Metal, f32, i32>;
#[cfg(feature = "std")]
#[cfg(test)]
pub type TestAutodiffBackend = burn_autodiff::Autodiff<TestBackend>;
pub type LearningRate = f64;