Fix total train time metric logging (#1284)

This commit is contained in:
William Shen authored and GitHub committed 2023-01-24 13:28:00 -08:00
1 parent c8fdc1a7cb
commit bc65639edf
1 file changed
+4
+4
View File
@@ -227,9 +227,13 @@ class Trainer:
self.save_checkpoint(step) self.save_checkpoint(step)
writer.write_out_storage() writer.write_out_storage()
# save checkpoint at the end of training # save checkpoint at the end of training
self.save_checkpoint(step) self.save_checkpoint(step)
# write out any remaining events (e.g., total train time)
writer.write_out_storage()
CONSOLE.rule() CONSOLE.rule()
CONSOLE.print("[bold green]:tada: :tada: :tada: Training Finished :tada: :tada: :tada:", justify="center") CONSOLE.print("[bold green]:tada: :tada: :tada: Training Finished :tada: :tada: :tada:", justify="center")
if not self.config.viewer.quit_on_train_completion: if not self.config.viewer.quit_on_train_completion: