* fix typo in serialize_file doc-string
* update __init__.pyi serialize_file
@staticmethod
def serialize_file(tensor_dict, filename, metadata=None):
"""
- Serializes raw data.
+ Serializes raw data into file.
Args:
tensor_dict (`Dict[str, Dict[Any]]`):
The optional purely text annotations
Returns:
- (`bytes`):
- The serialized content.
+ (`NoneType`):
+ On success return None.
"""
pass
Ok(pybytes)
}
-/// Serializes raw data.
+/// Serializes raw data into file.
///
/// Args:
/// tensor_dict (`Dict[str, Dict[Any]]`):
/// 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(