Cargo Features

[dependencies]
ort = { version = "2.0.0-rc.9", 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 default-features = false somewhere in the dependency tree.

training

Enables training of ort-sys

Affects ort::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

Enables cuda of ort-sys

tensorrt

Enables tensorrt of ort-sys

openvino

Enables openvino of ort-sys

onednn

Enables onednn of ort-sys

directml

Enables directml of ort-sys

nnapi

Enables nnapi of ort-sys

coreml

Enables coreml of ort-sys

xnnpack

Enables xnnpack of ort-sys

rocm

Enables rocm of ort-sys

acl

Enables acl of ort-sys

armnn

Enables armnn of ort-sys

tvm

Enables tvm of ort-sys

migraphx

Enables migraphx of ort-sys

rknpu

Enables rknpu of ort-sys

vitis

Enables vitis of ort-sys

cann

Enables cann of ort-sys

qnn

Enables qnn of ort-sys

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