torch-sys
Low-level FFI bindings for the PyTorch C++ api (libtorch).
0.24.0
6.6M downloads/mo
#3932 most downloaded on crates.io
LaurentMazare/tch-rs
What this package is like to depend on
Last release 5 months ago
26 Mar 2026
Ships fairly regularly
a new release about every 3 months
Some releases are documented
notes for 22 of 45 stable releases
Nothing withdrawn
no release was ever pulled
7 years old
45 releases · first in 2019
3 releases in the last 12 months
see the full history below
Release timeline
45 releases · Mar 2019 to Mar 2026Releases
latest 45-
0.24.026 Mar 2026 -
0.23.022 Jan 2026 -
0.22.016 Oct 2025Nothing published for this version
-
0.20.023 Apr 2025 -
0.19.030 Jan 2025 -
0.18.115 Dec 2024 -
0.18.017 Oct 2024 -
0.17.010 Aug 2024 -
0.16.115 Oct 2024Nothing published for this version
-
0.16.024 Apr 2024 -
0.15.030 Jan 2024 -
0.14.005 Oct 2023 -
0.13.018 May 2023Release notes
Open source →Added
- Support static linking in the build script, 712.
- Make the libtorch download opt-in rather than a default behavior. The libtorch
library download can still be triggered by enabling the
download-libtorchfeature, 707. - Rename the
of_...conversion functions tofrom_...so as to be closer to the Rust best practices, 706. This is a breaking change and will require modifying calls such asof_sliceto befrom_sliceinstead. - Expose some functions so that Python extensions that operates on PyTorch
tensors can be written with
tch, 704. - Rework the torch-sys build script making it easier to leverage a Python PyTorch install as a source for libtorch, 703.
-
0.12.010 May 2023Release notes
Open source →Changed
- EfficientNet models have been reworked, pre-trained models used
safetensorsweight by default, 679. - None can be used for nullable scalar types, 680.
- Automated conversion of list arguments: all the generated functions that take as input a slice of int or float can now be used directly with int values or fixed length arrays 682.
- Replace the
From<Tensor>traits with someTryFromversions, 683. This is a breaking change, note that also the old version would flatten the tensor if needed to reduce the number of dimensions, this has to be done explicitely with the new version.
- EfficientNet models have been reworked, pre-trained models used
-
0.11.020 Mar 2023Release notes
Open source →Added
- Adapt to C++ PyTorch library (
libtorch) versionv2.0.0.
Changed
- Update the
halfdependency to version2, 646.
- Adapt to C++ PyTorch library (
-
0.10.323 Feb 2023Release notes
Open source →Added
- Add some helper functions in a utils module to check the available devices and versions.
-
0.10.219 Feb 2023 -
0.10.012 Dec 2022Release notes
Open source →Added
- Expose functions for setting manual seeds for CUDA devices, #500.
- Expose functions for triggering manual sync, #500.
- Add some functions to load Python weight files.
Changed
- Extending the Kaiming initialization, #573.
-
0.9.005 Nov 2022 -
0.8.004 Jul 2022 -
0.7.216 May 2022 -
0.7.012 Mar 2022Nothing published for this version
-
0.6.125 Oct 2021 -
0.6.022 Oct 2021Nothing published for this version
-
0.5.025 Jun 2021 -
0.4.108 May 2021 -
0.4.018 Mar 2021Nothing published for this version
-
0.3.105 Jan 2021Nothing published for this version
-
0.3.008 Nov 2020Nothing published for this version
-
0.2.101 Oct 2020Nothing published for this version
-
0.2.001 Aug 2020Nothing published for this version
-
0.1.726 Apr 2020Nothing published for this version
-
0.1.609 Feb 2020Nothing published for this version
-
0.1.523 Jan 2020Nothing published for this version
-
0.1.312 Dec 2019Nothing published for this version
-
0.1.125 Jul 2019Nothing published for this version
-
0.1.014 Jun 2019Nothing published for this version
-
0.0.802 May 2019Nothing published for this version
-
0.0.708 Apr 2019Nothing published for this version
-
0.0.601 Apr 2019Nothing published for this version
-
0.0.519 Mar 2019Nothing published for this version
-
0.0.407 Mar 2019Nothing published for this version
-
0.0.303 Mar 2019Nothing published for this version
-
0.0.202 Mar 2019Nothing published for this version
-
0.0.102 Mar 2019Nothing published for this version