Skip to content

Commit

Permalink
fix: cannot save console log to file
Browse files Browse the repository at this point in the history
  • Loading branch information
martinwhl committed Apr 16, 2023
1 parent fc63b7f commit cc01789
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def add_arguments_to_parser(self, parser):
parser.add_lightning_class_args(PrintLastEpochValMetrics, "callbacks.print_last_epoch_val_metrics")
parser.add_lightning_class_args(SaveLastEpochValResults, "callbacks.save_last_epoch_val_results")

def before_fit(self):
def before_instantiate_classes(self):
log_path = self.config.get("fit").get("log_path")
if log_path is not None:
utils.logging.output_logger_to_file(L.pytorch._logger, log_path)
Expand Down

0 comments on commit cc01789

Please sign in to comment.