MCPcopy
hub / github.com/OpenMotionLab/MotionGPT / on_train_epoch_end

Method on_train_epoch_end

mGPT/models/base.py:38–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

36 return self.forward(batch)
37
38 def on_train_epoch_end(self):
39 # Log steps and losses
40 dico = self.step_log_dict()
41 # Log losses
42 dico.update(self.loss_log_dict('train'))
43 # Write to log only if not sanity check
44 if not self.trainer.sanity_checking:
45 self.log_dict(dico, sync_dist=True, rank_zero_only=True)
46
47 def on_validation_epoch_end(self):
48 # Log steps and losses

Callers

nothing calls this directly

Calls 3

step_log_dictMethod · 0.95
loss_log_dictMethod · 0.95
updateMethod · 0.45

Tested by

no test coverage detected