5 releases (3 breaking)
Uses new Rust 2024
0.17.0 | Apr 23, 2025 |
---|---|
0.16.1 | Apr 3, 2025 |
0.16.0 | Jan 14, 2025 |
0.15.0 | Oct 28, 2024 |
0.14.0 | Aug 27, 2024 |
#18 in #automatic-differentiation
14,588 downloads per month
Used in 22 crates
(3 directly)
2MB
41K
SLoC
Burn CUDA Backend
Burn CUDA backend
This crate provides a CUDA backend for Burn using the cubecl and cudarc crates.
Usage Example
#[cfg(feature = "cuda")]
mod cuda {
use burn_autodiff::Autodiff;
use burn_cuda::{Cuda, CudaDevice};
use mnist::training;
pub fn run() {
let device = CudaDevice::default();
training::run::<Autodiff<Cuda<f32, i32>>>(device);
}
}
Dependencies
Requires CUDA 12.x to be installed and on the PATH
.
Dependencies
~30–63MB
~1M SLoC