From: Akinori Mitani Date: Tue, 4 Jul 2023 14:41:59 +0000 (-0700) Subject: Fix docstring Args names. (#290) X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b6b4b5bf81f36a3072c7e473e2c24346fdc4ef07;p=safetensors.git Fix docstring Args names. (#290) Fix docstring Args names. --- 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.