Cargo Features
[dependencies]
ort = { version = "2.0.0-rc.8", default-features = false, features = ["training", "fetch-models", "download-binaries", "load-dynamic", "copy-dylibs", "cuda", "tensorrt", "openvino", "onednn", "directml", "nnapi", "coreml", "xnnpack", "rocm", "acl", "armnn", "tvm", "migraphx", "rknpu", "vitis", "cann", "qnn", "ndarray", "half"] }
- default = copy-dylibs, download-binaries, half, ndarray
-
These default features are set whenever
ort
is added without
somewhere in the dependency tree.default-features = false - training
- fetch-models = sha2, ureq
- download-binaries default
-
Enables download-binaries of ort-sys
- load-dynamic = libloading
-
Enables load-dynamic of ort-sys
Affects
environment::init_from
… - copy-dylibs default
-
Enables copy-dylibs of ort-sys
- cuda
- tensorrt
- openvino
- onednn
- directml
- nnapi
- coreml
- xnnpack
- rocm
- acl
- armnn
- tvm
- migraphx
- rknpu
- vitis
- cann
- qnn
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.
- ndarray default
- libloading load-dynamic?
- ureq fetch-models?
- sha2 fetch-models?
- half default