]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Fix mispelling of dictionary. (#410)
authorHayden Donnelly <donnellyhd@outlook.com>
Thu, 18 Jan 2024 12:36:38 +0000 (07:36 -0500)
committerGitHub <noreply@github.com>
Thu, 18 Jan 2024 12:36:38 +0000 (13:36 +0100)
bindings/python/py_src/safetensors/flax.py
bindings/python/py_src/safetensors/numpy.py
bindings/python/py_src/safetensors/paddle.py
bindings/python/py_src/safetensors/tensorflow.py

index aa906273dc3840a6567d493c58798b764dafefe1..d0b8375e038eff487af33fcfaa4a597aacb5743f 100644 (file)
@@ -10,7 +10,7 @@ from safetensors import numpy, safe_open
 
 def save(tensors: Dict[str, Array], metadata: Optional[Dict[str, str]] = None) -> bytes:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, Array]`):
@@ -43,7 +43,7 @@ def save_file(
     metadata: Optional[Dict[str, str]] = None,
 ) -> None:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, Array]`):
index a852ff351a4c2c61b3435b4eee831fca11532f28..0b245f12c1c949456c9b2edb45a11343e6a8099a 100644 (file)
@@ -15,7 +15,7 @@ def _tobytes(tensor: np.ndarray) -> bytes:
 
 def save(tensor_dict: Dict[str, np.ndarray], metadata: Optional[Dict[str, str]] = None) -> bytes:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensor_dict (`Dict[str, np.ndarray]`):
@@ -48,7 +48,7 @@ def save_file(
     tensor_dict: Dict[str, np.ndarray], filename: Union[str, os.PathLike], metadata: Optional[Dict[str, str]] = None
 ) -> None:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensor_dict (`Dict[str, np.ndarray]`):
index 8a83b98adb3f4ecf9092734bb1645804f65cfd29..b242237af02d6afd4518b6c2795b2123776070d3 100644 (file)
@@ -9,7 +9,7 @@ from safetensors import numpy
 
 def save(tensors: Dict[str, paddle.Tensor], metadata: Optional[Dict[str, str]] = None) -> bytes:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, paddle.Tensor]`):
@@ -42,7 +42,7 @@ def save_file(
     metadata: Optional[Dict[str, str]] = None,
 ) -> None:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, paddle.Tensor]`):
index 65b8aeb469b3ee56e14a3f6df57ca4d8689d0e92..e2d74b0522698b3748a7da93753e065f4053beea 100644 (file)
@@ -9,7 +9,7 @@ from safetensors import numpy, safe_open
 
 def save(tensors: Dict[str, tf.Tensor], metadata: Optional[Dict[str, str]] = None) -> bytes:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, tf.Tensor]`):
@@ -42,7 +42,7 @@ def save_file(
     metadata: Optional[Dict[str, str]] = None,
 ) -> None:
     """
-    Saves a dictionnary of tensors into raw bytes in safetensors format.
+    Saves a dictionary of tensors into raw bytes in safetensors format.
 
     Args:
         tensors (`Dict[str, tf.Tensor]`):