Cargo Features
[dependencies]
burn-import = { version = "0.15.0", default-features = false, features = ["onnx", "pytorch"] }
- default = onnx, pytorch
-
These default features are set whenever
burn-import
is added without
somewhere in the dependency tree.default-features = false - onnx default
-
Affects
burn-import::onnx
,burn-import::burn
… - pytorch default = thiserror, zip
-
Enables record-item-custom-serde of burn
Affects
burn-import::pytorch
…
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.
- thiserror pytorch
-
Enables thiserror ^1.0.64
- zip pytorch