Method
phase_ended
(self, phase, model, hyperparams, experiment_name, output_training_path, **kwargs)
Source from the content-addressed store, hash-verified
| 31 | phase.samples_processed_this_epoch=0 |
| 32 | |
| 33 | def phase_ended(self, phase, model, hyperparams, experiment_name, output_training_path, **kwargs): |
| 34 | |
| 35 | if (phase.epoch_nr%hyperparams.save_checkpoint_every_x_epoch==0) and hyperparams.save_checkpoint and phase.grad: |
| 36 | model.save(output_training_path, experiment_name, hyperparams, phase.epoch_nr) |
| 37 | |
| 38 | |
Callers
nothing calls this directly
Tested by
no test coverage detected