burn/burn-wgpu
Nathaniel Simard c74e75f748
Fix/wgpu/max pool2d backward (#613)
2023-08-09 16:45:49 -04:00
..
benches continuous to contiguous (#511) 2023-07-20 11:28:35 -04:00
src Fix/wgpu/max pool2d backward (#613) 2023-08-09 16:45:49 -04:00
Cargo.toml Update serial_test requirement from 0.5.0 to 2.0.0 (#579) 2023-08-03 09:21:47 -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);
    }
}