From: Hayden Donnelly Date: Thu, 18 Jan 2024 12:36:38 +0000 (-0500) Subject: Fix mispelling of dictionary. (#410) X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=d294300a8779d718560f034aea184c20eed9dadc;p=safetensors.git Fix mispelling of dictionary. (#410) --- diff --git a/bindings/python/py_src/safetensors/flax.py b/bindings/python/py_src/safetensors/flax.py index aa90627..d0b8375 100644 --- a/bindings/python/py_src/safetensors/flax.py +++ b/bindings/python/py_src/safetensors/flax.py @@ -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]`): diff --git a/bindings/python/py_src/safetensors/numpy.py b/bindings/python/py_src/safetensors/numpy.py index a852ff3..0b245f1 100644 --- a/bindings/python/py_src/safetensors/numpy.py +++ b/bindings/python/py_src/safetensors/numpy.py @@ -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]`): diff --git a/bindings/python/py_src/safetensors/paddle.py b/bindings/python/py_src/safetensors/paddle.py index 8a83b98..b242237 100644 --- a/bindings/python/py_src/safetensors/paddle.py +++ b/bindings/python/py_src/safetensors/paddle.py @@ -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]`): diff --git a/bindings/python/py_src/safetensors/tensorflow.py b/bindings/python/py_src/safetensors/tensorflow.py index 65b8aeb..e2d74b0 100644 --- a/bindings/python/py_src/safetensors/tensorflow.py +++ b/bindings/python/py_src/safetensors/tensorflow.py @@ -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]`):