pub fn serialize_to_file<S: AsRef<str> + Ord + Display, V: View, I: IntoIterator<Item = (S, V)>>(
    data: I,
    data_info: &Option<HashMap<String, String>>,
    filename: &Path
) -> Result<(), SafeTensorError>
Expand description

Serialize to a regular file the dictionnary of tensors. Writing directly to file reduces the need to allocate the whole amount to memory.