use burn::{
prelude::Backend,
tensor::backend::DeviceOps,
};
pub type CpuBackend = ::burn::backend::Flex;
cfg_select! {
feature = "cuda" => {
pub type PerformanceBackend = ::burn::backend::Cuda;
}
feature = "metal" => {
pub type PerformanceBackend = ::burn::backend::Metal;
}
feature = "vulkan" => {
pub type PerformanceBackend = ::burn::backend::Vulkan;
}
feature = "wgpu" => {
pub type PerformanceBackend = ::burn::backend::Wgpu;
}
_ => {
pub type PerformanceBackend = CpuBackend;
}
}