Skip to content

Commit

Permalink
Fix typo (#377)
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Chang <[email protected]>
  • Loading branch information
cccntu authored Nov 17, 2023
1 parent 9e0bc08 commit bfd22b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bindings/python/py_src/safetensors/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def save_file(
import numpy as np
tensors = {"embedding": np.zeros((512, 1024)), "attention": np.zeros((256, 256))}
save(tensors, "model.safetensors")
save_file(tensors, "model.safetensors")
```
"""
flattened = {k: {"dtype": v.dtype.name, "shape": v.shape, "data": _tobytes(v)} for k, v in tensor_dict.items()}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/py_src/safetensors/tensorflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def save_file(
import tensorflow as tf
tensors = {"embedding": tf.zeros((512, 1024)), "attention": tf.zeros((256, 256))}
save(tensors, "model.safetensors")
save_file(tensors, "model.safetensors")
```
"""
np_tensors = _tf2np(tensors)
Expand Down

0 comments on commit bfd22b3

Please sign in to comment.