mirror of https://github.com/tracel-ai/burn.git
884 B
884 B
Burn WGPU Backend
Burn WGPU backend
This crate provides a WGPU backend for Burn utilizing the wgpu.
The backend supports Vulkan, Metal, DirectX11/12, OpenGL, WebGPU.
Usage Example
#[cfg(feature = "wgpu")]
mod wgpu {
use burn_autodiff::ADBackendDecorator;
use burn_wgpu::{AutoGraphicsApi, WgpuBackend, WgpuDevice};
use mnist::training;
pub fn run() {
let device = WgpuDevice::default();
training::run::<ADBackendDecorator<WgpuBackend<AutoGraphicsApi, f32, i32>>>(device);
}
}