MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / phase_ended

Method phase_ended

callbacks/state_callback.py:33–36  ·  view source on GitHub ↗
(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

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected