to_bytes

Function to_bytes 

Source
pub fn to_bytes<B: Backend>(tensors: &[(String, Tensor<B>)]) -> Result<Vec<u8>>
Expand description

Serialize named tensors to an in-memory byte vector.