]> khamidou — GitHub mirrors - safetensors.git/commit
Found out about `torch.asarray` + `torch.Storage` combo. (#56)
authorNicolas Patry <patry.nicolas@protonmail.com>
Fri, 4 Nov 2022 14:02:30 +0000 (15:02 +0100)
committerGitHub <noreply@github.com>
Fri, 4 Nov 2022 14:02:30 +0000 (15:02 +0100)
commit2f1da8be6258f520a7a849d68a56696ddb3464dc
treeb2a790aaee1d6e3f9261ad0e00ae454314aae4a4
parentf00cffa729be2fcfb869c17a697c27fc23b1f402
Found out about `torch.asarray` + `torch.Storage` combo. (#56)

* Found out about `torch.asarray` + `torch.Storage` combo.

Extremely fast (I'm guessing it's just pointer arithmetic and actual
load time would it when actually using the tensors.)

* Dropping 1.10 support (no `asarray`.)

* Accepting torch==1.10.0 in slow mode.

* Adding a comment about `Storage`.
bindings/python/benches/test_pt.py
bindings/python/src/lib.rs