MCPcopy
hub / github.com/Vchitect/Latte / on_train_batch_end

Method on_train_batch_end

train_pl.py:115–116  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

113 return loss
114
115 def on_train_batch_end(self, *args, **kwargs):
116 update_ema(self.ema, self.model)
117
118 def on_save_checkpoint(self, checkpoint):
119 super().on_save_checkpoint(checkpoint)

Callers

nothing calls this directly

Calls 1

update_emaFunction · 0.90

Tested by

no test coverage detected