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