-
| 
         Just to want to find a way to save the optimizer and load it somewhere else. Trying to save the output (e.g. of type  the trait bound `ParamId: Serialize` is not satisfied | 
  
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| 
         You should be able to save the optimizer state/record using  recorder.record(optim.to_record(), save_path).unwrap();This is pretty much what we do in  burn/crates/burn-train/src/checkpoint/file.rs Lines 46 to 55 in 6efc6fe  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         Confirm it works~  | 
  
Beta Was this translation helpful? Give feedback.
You should be able to save the optimizer state/record using
optimizer.to_record()and a file recorder, e.g.This is pretty much what we do in
burn-train:burn/crates/burn-train/src/checkpoint/file.rs
Lines 46 to 55 in 6efc6fe