PackageTrack
Sign in Get early access

tch

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

0.24.0 6.6M downloads/mo #3921 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 23 of 47 stable releases

1 version withdrawn

withdrawn after publishing

7 years old

48 releases · first in 2019

3 releases in the last 12 months

see the full history below

Release timeline

48 releases · Feb 2019 to Mar 2026
2020 2021 2022 2023 2024 2025 2026
Release Pre-release Withdrawn

Releases

latest 48
  1. 0.24.0 26 Mar 2026
    Release notes

    Changed

    • PyTorch v2.11 support
    Open source →
  2. 0.23.0 22 Jan 2026
    Release notes

    Changed

    • PyTorch v2.10 support
    Open source →
  3. 0.22.0 16 Oct 2025

    Nothing published for this version

  4. 0.20.0 23 Apr 2025
    Release notes

    Changed

    • PyTorch v2.7 support
    Open source →
  5. 0.19.0 30 Jan 2025
    Release notes

    Changed

    • PyTorch v2.6 support
    Open source →
  6. 0.18.1 15 Dec 2024
    Release notes

    Changed

    • PyTorch v2.5.1 support
    Open source →
  7. 0.18.0 17 Oct 2024
    Release notes

    Changed

    • PyTorch v2.5 support
    Open source →
  8. 0.17.0 10 Aug 2024
    Release notes

    Changed

    • PyTorch v2.4 support
    Open source →
  9. 0.16.1 15 Oct 2024

    Nothing published for this version

  10. 0.16.0 24 Apr 2024
    Release notes

    Changed

    • PyTorch v2.3 support
    Open source →
  11. 0.15.0 30 Jan 2024
    Release notes

    Changed

    • PyTorch v2.2 support
    Open source →
  12. 0.14.0 05 Oct 2023
    Release notes

    Changed

    • PyTorch v2.1 support 803.
    • Add a pyo3-tch crate for interacting with Python via PyO3 730.
    • Expose the cuda fuser enabled flag, 728.
    • Improved the safetensor error wrapping, 720.
    Open source →
  13. 0.13.0 18 May 2023
    Release notes

    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-libtorch feature, 707.
    • Rename the of_... conversion functions to from_... so as to be closer to the Rust best practices, 706. This is a breaking change and will require modifying calls such as of_slice to be from_slice instead.
    • 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.
    Open source →
  14. 0.12.0 10 May 2023
    Release notes

    Changed

    • EfficientNet models have been reworked, pre-trained models used safetensors weight 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 some TryFrom versions, 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.
    Open source →
  15. 0.11.0 20 Mar 2023
    Release notes

    Added

    • Adapt to C++ PyTorch library (libtorch) version v2.0.0.

    Changed

    • Update the half dependency to version 2, 646.
    Open source →
  16. 0.10.3 23 Feb 2023
    Release notes

    Added

    • Add some helper functions in a utils module to check the available devices and versions.
    Open source →
  17. 0.10.2 19 Feb 2023
    Release notes

    Added

    • Add the eps and amsgrad options to Adam, 600.

    Changed

    • Fix loading of VarStore when using Mps devices, 623.
    • Use ureq instead of curl to reduce compile times, 620.
    • Fix the handling of dicts in TorchScript, 597.
    Open source →
  18. 0.10.1 12 Dec 2022
    Release notes

    Changed

    • Default vs.load to use the Python weight format when the file extension is .pt or .bin.
    Open source →
  19. 0.10.0 12 Dec 2022
    Release notes

    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.
    Open source →
  20. 0.9.0 05 Nov 2022
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.13.0.
    Open source →
  21. 0.8.0 04 Jul 2022
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.12.0.
    Open source →
  22. 0.7.2 16 May 2022
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.11.0.
    Open source →
  23. 0.7.1 16 May 2022 withdrawn

    Nothing published for this version

  24. 0.7.0 13 Mar 2022

    Nothing published for this version

  25. 0.6.1 25 Oct 2021
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.10.0.
    Open source →
  26. 0.6.0 22 Oct 2021

    Nothing published for this version

  27. 0.5.0 25 Jun 2021
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.9.0.
    Open source →
  28. 0.4.1 08 May 2021
    Release notes

    Changed

    • Adapt to C++ PyTorch library (libtorch) version v1.8.1.
    Open source →
  29. 0.4.0 18 Mar 2021

    Nothing published for this version

  30. 0.3.1 05 Jan 2021

    Nothing published for this version

  31. 0.3.0 08 Nov 2020

    Nothing published for this version

  32. 0.2.1 01 Oct 2020

    Nothing published for this version

  33. 0.2.0 01 Aug 2020

    Nothing published for this version

  34. 0.1.7 26 Apr 2020

    Nothing published for this version

  35. 0.1.6 09 Feb 2020

    Nothing published for this version

  36. 0.1.5 23 Jan 2020

    Nothing published for this version

  37. 0.1.3 12 Dec 2019

    Nothing published for this version

  38. 0.1.1 26 Jul 2019

    Nothing published for this version

  39. 0.1.0 14 Jun 2019

    Nothing published for this version

  40. 0.0.9 02 May 2019

    Nothing published for this version

  41. 0.0.8 08 Apr 2019

    Nothing published for this version

  42. 0.0.7 01 Apr 2019

    Nothing published for this version

  43. 0.0.6 19 Mar 2019

    Nothing published for this version

  44. 0.0.5 07 Mar 2019

    Nothing published for this version

  45. 0.0.4 03 Mar 2019

    Nothing published for this version

  46. 0.0.3 02 Mar 2019

    Nothing published for this version

  47. 0.0.2 28 Feb 2019

    Nothing published for this version

  48. 0.0.1 27 Feb 2019

    Nothing published for this version

Every package, every release, already written down.

The archive is open and free. Watching your own project is what we are building next.

Browse the archive