Cargo Features
[dependencies]
burn-core = { version = "0.13.1", default-features = false, features = ["std", "dataset", "network", "sqlite", "sqlite-bundled", "vision", "wasm-sync", "doc", "autodiff", "fusion", "cuda", "metal", "accelerate", "openblas", "openblas-system", "blas-netlib", "autotune", "template", "ndarray", "tch", "candle", "wgpu", "record-item-custom-serde", "experimental-named-tensor", "test-tch", "test-wgpu"] }
- default = std
-
These default features are set whenever
burn-core
is added without
somewhere in the dependency tree.default-features = false Enables burn-common, optional burn-autodiff, optional burn-candle, and optional burn-dataset
burn-common:
** Please make sure all dependencies support no_std when std is disabled **
and burn-tensor, optional burn-ndarray, optional burn-tch, and optional burn-wgpu
burn-ndarray:
Backends
- std default doc? = flate2, log, rmp-serde
-
Enables std of bincode, optional burn-autodiff, optional burn-candle, burn-common, optional burn-ndarray, burn-tensor, optional burn-wgpu, half, num-traits, rand, serde, and serde_json
rand:
Default enables std
Affects
config::Config.save
,config::Config.load
,burn-core::data
,burn-core::optim
,burn-core::lr_scheduler
,base::Module.save_file
,base::Module.load_file
,memory::NamedMpkBytesRecorder
,recorder::DefaultRecorder
,recorder::CompactRecorder
,recorder::SensitiveCompactRecorder
,recorder::NoStdTrainingRecorder
,recorder::DebugRecordSettings
… - dataset doc? = burn-dataset
-
Affects
data::dataloader
,data::dataset
… - network
-
Enables network of burn-common
Affects
data::network
… - sqlite
-
Enables sqlite of optional burn-dataset
- sqlite-bundled
-
Enables sqlite-bundled of optional burn-dataset
- vision doc?
-
Enables network of burn-common, vision of optional burn-dataset
- wasm-sync
-
Enables wasm-sync of burn-common and burn-tensor
- doc = autodiff, candle, dataset, fusion, ndarray, std, tch, vision, wgpu
-
Enables doc of burn-candle, burn-common, burn-dataset, burn-ndarray, burn-tch, burn-tensor, and burn-wgpu
- autodiff doc? = burn-autodiff
-
Backend
- fusion doc?
- cuda
-
Backend features
Enables cuda of optional burn-candle
- metal
-
Enables metal of optional burn-candle
- accelerate
-
Enables accelerate of optional burn-candle, blas-accelerate of optional burn-ndarray
- openblas
-
Enables blas-openblas of optional burn-ndarray
- openblas-system
-
Enables blas-openblas-system of optional burn-ndarray
- blas-netlib
-
Enables blas-netlib of optional burn-ndarray
- autotune
- template
- ndarray doc? = burn-ndarray
- tch doc? test-tch? = burn-tch
- candle doc? = burn-candle
- wgpu doc? test-wgpu? = burn-wgpu
- record-item-custom-serde = regex, thiserror
-
Custom deserializer for Record that is helpful for importing data, such as PyTorch pt files.
Affects
record::serde
… - experimental-named-tensor
-
Serialization formats
Enables experimental-named-tensor of burn-tensor
- test-tch = tch
-
To use tch during testing, default uses ndarray.
- test-wgpu = wgpu
-
To use wgpu during testing, default uses ndarray.
Features from optional dependencies
In crates that don't use the dep:
syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.
- burn-dataset dataset? doc?
- burn-ndarray doc? ndarray?
- burn-wgpu doc? wgpu?
- burn-autodiff autodiff?
- burn-tch doc? tch?
- burn-candle candle? doc?
- log std
- flate2 std
-
Enables flate2
Serialize Deserialize
- rmp-serde std
- thiserror record-item-custom-serde?
- regex record-item-custom-serde?