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
-
For the LoggerBase, we have 3 similar methods,
save
,finalize
, andclose
. The default implementation forfinalize
andclose
just callsave
.save
only calls_finalize_agg_metrics
by default.Do we need all three? If not, we can consolidate
finalize
andclose
into 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.save
also makes the assumption that all loggers will use_metrics_to_agg
to 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