10 releases

0.21.1 Feb 8, 2024
0.21.0 Jan 16, 2024
0.20.22 Nov 28, 2023
0.20.21 Oct 31, 2023
0.20.18 Aug 30, 2023

#658 in Machine learning

Download history 79/week @ 2023-10-29 20/week @ 2023-11-05 26/week @ 2023-11-12 37/week @ 2023-11-19 78/week @ 2023-11-26 33/week @ 2023-12-03 27/week @ 2023-12-10 24/week @ 2023-12-17 34/week @ 2023-12-24 16/week @ 2023-12-31 16/week @ 2024-01-07 66/week @ 2024-01-14 14/week @ 2024-01-21 26/week @ 2024-01-28 49/week @ 2024-02-04 64/week @ 2024-02-11

154 downloads per month
Used in 4 crates (3 directly)

MIT/Apache

115KB
302 lines

tract 1.0 public API (draft)

TLDR

A regular Rust project should include tract-rs only.

Scope

These crates are meant to represent a public API for tract for integration in "simple" use case. We commit on Semver stability on these crates interface. The other crates are considered internal and their interface can change any time.

The public API scope is limited to model-level manipulation, no access to individual model graph nodes and operators is allowed.

Crates

  • interface definition: tract-api in tract/api
  • rust implementation over tract internal crates: tract-rs in tract/api/rs
  • tract as a C-friendly dynamic library: tract-ffi in tract/api/ffi
  • rust client over tract-ffi (use tract as a shared library): tract-proxy in tract/api/proxy. It implements tract-api, so is source-swapable with tract-rs.
  • python client: in tract/api/py

Dependencies

~2.5MB
~47K SLoC