Cargo Features

[dependencies]
burn-vision = { version = "0.17.0", default-features = false, features = ["std", "candle", "cubecl-backend", "export-tests", "fusion", "ndarray", "tch", "test-cpu", "test-cuda", "test-vulkan", "test-wgpu"] }
default = cubecl-backend, export-tests, fusion, ndarray, std

These default features are set whenever burn-vision is added without default-features = false somewhere in the dependency tree.

std default
candle = burn-candle
cubecl-backend default test-cuda? test-vulkan? test-wgpu? = burn-cubecl, cubecl
export-tests default test-cpu? test-cuda? test-vulkan? test-wgpu? = burn-tensor-testgen, image

Affects burn-vision::tests

fusion dev default = burn-fusion

Enables fusion of burn-cuda and burn-wgpu

ndarray default = burn-ndarray
tch = burn-tch
test-cpu = export-tests

Test features

test-cuda = cubecl-backend, export-tests
test-vulkan dev = cubecl-backend, export-tests

Enables vulkan of burn-wgpu

burn-wgpu:

Backends

test-wgpu = cubecl-backend, export-tests

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-candle candle?
burn-cubecl cubecl-backend
burn-fusion fusion
burn-ndarray ndarray
burn-tch tch?
burn-tensor-testgen export-tests
cubecl cubecl-backend
image export-tests