Skip to content

Commit

Permalink
Fix minor error in fit return
Browse files Browse the repository at this point in the history
  • Loading branch information
Lars Kuehmichel committed Oct 27, 2023
1 parent eb29b16 commit fa842a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightning_trainable/trainable/trainable.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def fit(self, logger_kwargs: dict = None, trainer_kwargs: dict = None, fit_kwarg
return {
key: value.item()
for key, value in trainer.callback_metrics.items()
if any(key.startswith(key) for key in ["training/", "validation/"])
if any(key.startswith(k) for k in ["training/", "validation/"])
}

@torch.enable_grad()
Expand Down

0 comments on commit fa842a3

Please sign in to comment.