Registry / other / tch

tch

JSON →
library0.24.0rscratesunverified

Rust bindings for the PyTorch C++ API (libtorch), enabling deep learning operations.

otherutility
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

use tch::Tensor;

Create a 1D tensor from a slice of floats.

use tch::Tensor; fn main() { let t = Tensor::of_slice(&[1.0, 2.0, 3.0]); println!("Tensor: {:?}", t); }
Debug
Known footguns
gotchaRequires libtorch to be installed separately; the crate does not bundle it.
breakingBreaking changes in libtorch versions may cause incompatibility; check the crate's version compatibility table.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
0 hits · last 30 days

No traffic data recorded yet.

Resources