]> khamidou — GitHub mirrors - safetensors.git/commit
Better Rust API (tch-rs) (#179)
authorNicolas Patry <patry.nicolas@protonmail.com>
Fri, 24 Feb 2023 13:56:51 +0000 (14:56 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Feb 2023 13:56:51 +0000 (14:56 +0100)
commit960cd17702430a2f033fa4dc5361119a6dac8b55
tree55feb684b8f87a659099c990c3660e4c04c113c4
parent120c4da5128ee5730f66e972a058a5dcd20fa358
Better Rust API (tch-rs) (#179)

* Implementing a trait API for the Rust (should make tch-rs interaction
easier).

* Companion type.

* Re-export major formats + 3rd example in the trait doc.

* Even clearer OpaqueGPU type.

* Moving to `Cow<[u8]>`. Feels simpler.

* Fixes.
.pre-commit-config.yaml
safetensors/src/lib.rs
safetensors/src/tensor.rs