Cargo Features

tch has no features set by default.

[dependencies]
tch = { version = "0.18.0", features = ["download-libtorch", "python-extension", "rl-python", "doc-only", "cuda-tests", "regex", "image", "clap", "serde_json", "memmap2"] }
download-libtorch

Enables download-libtorch of torch-sys

python-extension

Enables python-extension of torch-sys

Affects wrappers::python

rl-python = cpython
doc-only

Enables doc-only of torch-sys

cuda-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.

cpython rl-python?
regex implicit feature
image implicit feature

Enables image ^0.24.5

image:

Imaging library. Provides basic image processing and encoders/decoders for common image formats.

clap implicit feature

Enables clap

clap:

A simple to use, efficient, and full-featured Command Line Argument Parser

serde_json implicit feature

Enables serde_json

serde_json:

A JSON serialization file format

memmap2 implicit feature

Enables memmap2 ^0.6.1

memmap2:

Cross-platform Rust API for memory-mapped file IO