Cargo Features

[dependencies]
ai-dataloader = { version = "0.6.2", default-features = false, features = ["rayon", "tch"] }
default = rayon

The rayon feature is set by default whenever ai-dataloader is added without default-features = false somewhere in the dependency tree.

rayon default

Enables once_cell and rayon

Affects ai-dataloader::THREAD_POOL

Features from optional dependencies

tch implicit feature

Enables tch ^0.17.0

tch:

Rust wrappers for the PyTorch C++ api (libtorch)