]> khamidou — GitHub mirrors - safetensors.git/commit
Fix byte order detection for `np.uint8` and other types for which byte order is not...
authorNicolas Patry <patry.nicolas@protonmail.com>
Mon, 16 Jan 2023 12:42:22 +0000 (13:42 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Jan 2023 12:42:22 +0000 (13:42 +0100)
commit02e57076007ecf318ff3a01865e1be07874cb979
treeb17fdd027bce9f0435ecc0ee58c809d204c7a089
parente8b3ab601fcd9859567cc9e1c11301a5647d3ab5
Fix byte order detection for `np.uint8` and other types for which byte order is not defined. (#160)

* Fix byte order detection for `np.uint8` and other types for which byte order is not defined.

* Fixing np.uint8 endianness for `save`.

Co-authored-by: KOLANICH <kolan_n@mail.ru>
bindings/python/py_src/safetensors/numpy.py
bindings/python/tests/test_simple.py