pub fn save_trainer<B: Backend>( path: impl AsRef<Path>, trainer: &Trainer<B>, ) -> Result<()>
Save all parameters from a Trainer to a checkpoint file.