Registry / other / burn
library0.21.0rscratesunverified

Flexible and Comprehensive Deep Learning Framework in Rust

# Cargo.toml [dependencies] burn = "0.21.0"
INSTALL
IMPORT
SIG · BURN
B
burn
otherrustv0.21.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Tensor
use burn::tensor::Tensor;

Creates a 2D tensor using the Wgpu backend and prints it.

use burn::tensor::Tensor; use burn::backend::Wgpu; let device = Default::default(); let tensor = Tensor::<Wgpu, 2>::from_data([[1.0, 2.0], [3.0, 4.0]], &device); println!("{:?}", tensor);
Debug
Known issues
gotchaRequires a backend (e.g., Wgpu, Candle) to be enabled via feature flags.
fix
Add the appropriate backend feature, e.g., `burn = { features = ["wgpu"] }`.
affects: >=0.21.0
Upgrade
Version history
0.21.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Meta
1
OpenAI (training)
1
Resources
burn — cargo add burn · libregistry