Difference between save, finalize and close in Logger?
#9004
Unanswered
edward-io
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 4 replies
-
|
cc @carmocca @awaelchli @tchaton do you know why we have these 3? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
For the LoggerBase, we have 3 similar methods,
save,finalize, andclose. The default implementation forfinalizeandclosejust callsave.saveonly calls_finalize_agg_metricsby default.Do we need all three? If not, we can consolidate
finalizeandcloseinto a single method, as none of the existing loggers have any distinction between the two, and make that method abstract for other loggers to implement.savealso makes the assumption that all loggers will use_metrics_to_aggto buffer log data. If users have their own way of buffering data, users would need to override many in the base logger, likeagg_and_log_metrics,save, andagg_key_funcs.Beta Was this translation helpful? Give feedback.
All reactions