#![cfg_attr(not(feature = "std"), no_std)]
#![warn(missing_docs)]
#[macro_use]
extern crate derive_new;
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;
#[cfg(feature = "autodiff")]
pub use burn_autodiff as autodiff;
pub mod backend;
extern crate alloc;
#[cfg(all(test, not(feature = "test-tch"), not(feature = "test-wgpu"),))]
pub type TestBackend = burn_ndarray::NdArrayBackend<f32>;
#[cfg(all(test, feature = "test-tch"))]
pub type TestBackend = burn_tch::TchBackend<f32>;
#[cfg(all(test, feature = "test-wgpu", not(target_os = "macos")))]
pub type TestBackend = burn_wgpu::WgpuBackend<burn_wgpu::Vulkan, f32, i32>;
#[cfg(all(test, feature = "test-wgpu", target_os = "macos"))]
pub type TestBackend = burn_wgpu::WgpuBackend<burn_wgpu::Metal, f32, i32>;
#[cfg(feature = "std")]
#[cfg(test)]
pub type TestADBackend = burn_autodiff::ADBackendDecorator<TestBackend>;
pub type LearningRate = f64;