]> khamidou — GitHub mirrors - safetensors.git/commit
Accepting `pathlib.Path` in `save_file/load_file/safe_open`. (#86)
authorNicolas Patry <patry.nicolas@protonmail.com>
Fri, 18 Nov 2022 14:24:35 +0000 (15:24 +0100)
committerGitHub <noreply@github.com>
Fri, 18 Nov 2022 14:24:35 +0000 (15:24 +0100)
commit736d990c335e0e2efcfcc212731635a2d944aab3
tree3eeb62d600a220c8119eb524dd011b7b0baf1721
parent11c21549cca3ec3f871b44a8804e2f9ce4df2ac6
Accepting `pathlib.Path` in `save_file/load_file/safe_open`. (#86)

* Accepting `pathlib.Path` in `save_file/load_file/safe_open`.

* as_path.

* Update docstrings.

- Removed unused `:obj:`
- Put `os.PathLike` everywhere it's needed
- python stub.py
bindings/python/py_src/safetensors/flax.py
bindings/python/py_src/safetensors/numpy.py
bindings/python/py_src/safetensors/tensorflow.py
bindings/python/py_src/safetensors/torch.py
bindings/python/src/lib.rs
bindings/python/tests/test_simple.py
safetensors/src/tensor.rs