Function metatensor::io::save_buffer
source · pub fn save_buffer(
tensor: &TensorMap,
buffer: &mut Vec<u8>
) -> Result<(), Error>
Expand description
Save the given tensor
to an in-memory buffer
.
This function will grow the buffer as required to fit the whole tensor.