(model,optimizer,filename)
| 47 | |
| 48 | |
| 49 | def save_checkPoint(model,optimizer,filename): |
| 50 | print("=========================================================> save_model...") |
| 51 | checkpoint = { |
| 52 | "state_dict":model, |
| 53 | 'optimizer':optimizer.state_dict() |
| 54 | } |
| 55 | torch.save(obj=checkpoint,f=filename) |
| 56 | |
| 57 | def load_checkPoint(model,filename,optimizer,lr): |
| 58 | print("=========>") |
nothing calls this directly
no outgoing calls
no test coverage detected