tracel-ai/burn · error
BURN_DEVICE=remote requested, but the 'remote' feature is no
Error message
BURN_DEVICE=remote requested, but the 'remote' feature is not enabled.
What it means
BURN_DEVICE selection guard for `remote`: returns the remote backend only when the `remote` feature is compiled; otherwise panics. Fires when the environment requests remote execution from a binary built without remote support.
Source
Thrown at crates/burn-dispatch/src/device.rs:271
return Self::Cube(CubeDevice::Wgpu(Default::default()));
panic!(
"BURN_DEVICE={device_str} requested, but no wgpu feature is enabled."
);
}
"cpu" => {
#[cfg(feature = "cpu")]
return Self::Cube(CubeDevice::Cpu(Default::default()));
panic!("BURN_DEVICE=cpu requested, but the 'cpu' feature is not enabled.");
}
"tch" => {
#[cfg(feature = "tch")]
return Self::LibTorch(LibTorchDevice::default());
panic!("BURN_DEVICE=tch requested, but the 'tch' feature is not enabled.");
}
"remote" => {
#[cfg(feature = "remote")]
return Self::Remote(RemoteDevice::default());
panic!(
"BURN_DEVICE=remote requested, but the 'remote' feature is not enabled."
);
}
"flex" => {
#[cfg(any(feature = "flex", default_backend))]
return Self::Flex(FlexDevice);
panic!(
"BURN_DEVICE=flex requested, but the 'flex' feature is not enabled."
);
}
"ndarray" => {
#[cfg(feature = "ndarray")]
return Self::NdArray(NdArrayDevice::default());
panic!(
"BURN_DEVICE=ndarray requested, but the 'ndarray' feature is not enabled."
);
}
_ => panic!("Unknown BURN_DEVICE override: '{}'.", device_str),View on GitHub (pinned to d16f7ba2ed)
Solutions
- Enable the `remote` feature and rebuild.
- Choose an enabled backend via BURN_DEVICE.
- Unset BURN_DEVICE so the default backend is used.
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at crates/burn-dispatch/src/device.rs:271 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of tracel-ai/burn@d16f7ba2ed (2026-09-05).
Data as JSON: /api/errors/6543ac6f607d5fa0.
Report an issue: GitHub.