pub fn training_to_bytes<B: Backend>( checkpoint: &TrainingCheckpoint<B>, ) -> Result<Vec<u8>>
Serialize a training checkpoint to an in-memory byte vector.