burn/burn-wgpu
Nathaniel Simard 0a5a2d729a
chore: bump version for next release (#533)
2023-07-26 09:46:28 -04:00
..
benches continuous to contiguous (#511) 2023-07-20 11:28:35 -04:00
src patch tanh bug on mac os (#520) 2023-07-24 19:29:10 -04:00
Cargo.toml chore: bump version for next release (#533) 2023-07-26 09:46:28 -04:00
LICENSE-APACHE Feat/wgpu backend setup (#376) 2023-06-02 11:52:47 -04:00
LICENSE-MIT Feat/wgpu backend setup (#376) 2023-06-02 11:52:47 -04:00
README.md add wgpu readme (#531) 2023-07-25 10:44:53 -04:00

README.md

Burn WGPU Backend

Burn WGPU backend

Current Crates.io Version license

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);
    }
}