]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fix docstring Args names. (#290)
authorAkinori Mitani <amitani.tky@gmail.com>
Tue, 4 Jul 2023 14:41:59 +0000 (07:41 -0700)
committerGitHub <noreply@github.com>
Tue, 4 Jul 2023 14:41:59 +0000 (16:41 +0200)
Fix docstring Args names.

bindings/python/py_src/safetensors/numpy.py

index d0dd1514f5104bae733b62d2d19fb85144908744..ccb73b09c8bd473597b1e9424033b179d1790166 100644 (file)
@@ -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.