]> khamidou — GitHub mirrors - safetensors.git/commit
Stop recreating the hashmap all the time. (#363)
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 18 Sep 2023 14:45:47 +0000 (16:45 +0200)
committerGitHub <noreply@github.com>
Mon, 18 Sep 2023 14:45:47 +0000 (16:45 +0200)
commit6eb419fe5068a1b1a01227139d4a18e3b78a0f7b
tree593c7a08231288de62902c6a132fd43641aa87e0
parente90f60720f90887bb8fafa81f00ad28845da9462
Stop recreating the hashmap all the time. (#363)

* Stop recreating the hashmap all the time.

Fixes #361
Potentially superseeds #362

Co-Authored-By: Batuhan Taskaya <batuhan@python.org>
* Adding the benches.

---------

Co-authored-by: Batuhan Taskaya <batuhan@python.org>
bindings/python/benches/test_pt.py
bindings/python/src/lib.rs
safetensors/src/tensor.rs