From b6b4b5bf81f36a3072c7e473e2c24346fdc4ef07 Mon Sep 17 00:00:00 2001 From: Akinori Mitani Date: Tue, 4 Jul 2023 07:41:59 -0700 Subject: [PATCH] Fix docstring Args names. (#290) Fix docstring Args names. --- bindings/python/py_src/safetensors/numpy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/py_src/safetensors/numpy.py b/bindings/python/py_src/safetensors/numpy.py index d0dd151..ccb73b0 100644 --- a/bindings/python/py_src/safetensors/numpy.py +++ b/bindings/python/py_src/safetensors/numpy.py @@ -12,7 +12,7 @@ def save(tensor_dict: Dict[str, np.ndarray], metadata: Optional[Dict[str, str]] Saves a dictionnary of tensors into raw bytes in safetensors format. Args: - tensors (`Dict[str, np.ndarray]`): + tensor_dict (`Dict[str, np.ndarray]`): The incoming tensors. Tensors need to be contiguous and dense. metadata (`Dict[str, str]`, *optional*, defaults to `None`): Optional text only metadata you might want to save in your header. @@ -48,7 +48,7 @@ def save_file( Saves a dictionnary of tensors into raw bytes in safetensors format. Args: - tensors (`Dict[str, np.ndarray]`): + tensor_dict (`Dict[str, np.ndarray]`): The incoming tensors. Tensors need to be contiguous and dense. filename (`str`, or `os.PathLike`)): The filename we're saving into. -- 2.43.0