MCPcopy Create free account
hub / github.com/MoonInTheRiver/DiffSinger / on_epoch_end

Method on_epoch_end

tasks/base_task.py:162–166  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

160 self.scheduler.step(self.global_step // hparams['accumulate_grad_batches'])
161
162 def on_epoch_end(self):
163 loss_outputs = {k: round(v.avg, 4) for k, v in self.training_losses_meter.items()}
164 print(f"\n==============\n "
165 f"Epoch {self.current_epoch} ended. Steps: {self.global_step}. {loss_outputs}"
166 f"\n==============\n")
167
168 def validation_step(self, sample, batch_idx):
169 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected