Rust bindings for the PyTorch C++ API (libtorch), enabling deep learning operations.
# Cargo.toml
[dependencies]
tch = "0.24.0"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Create a 1D tensor from a slice of floats.
Install libtorch via your system package manager or download from pytorch.org, and set LIBTORCH environment variable.
Match the libtorch version to the one specified in the crate's documentation (e.g., libtorch 2.x for tch 0.24.x).
No dependency data recorded yet.