Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bindings/python/py_src/safetensors/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def serialize(tensor_dict, metadata=None):
@staticmethod
def serialize_file(tensor_dict, filename, metadata=None):
"""
Serializes raw data.
Serializes raw data into file.

Args:
tensor_dict (`Dict[str, Dict[Any]]`):
Expand All @@ -48,8 +48,8 @@ def serialize_file(tensor_dict, filename, metadata=None):
The optional purely text annotations

Returns:
(`bytes`):
The serialized content.
(`NoneType`):
On success return None.
"""
pass

Expand Down
6 changes: 3 additions & 3 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ fn serialize<'b>(
Ok(pybytes)
}

/// Serializes raw data.
/// Serializes raw data into file.
///
/// Args:
/// tensor_dict (`Dict[str, Dict[Any]]`):
Expand All @@ -139,8 +139,8 @@ fn serialize<'b>(
/// The optional purely text annotations
///
/// Returns:
/// (`bytes`):
/// The serialized content.
/// (`NoneType`):
/// On success return None
#[pyfunction]
#[pyo3(signature = (tensor_dict, filename, metadata=None))]
fn serialize_file(
Expand Down