Skip to content

Commit

Permalink
Fix pytorch lightining lint issue (mlflow#6038)
Browse files Browse the repository at this point in the history
Signed-off-by: harupy <[email protected]>
  • Loading branch information
harupy authored Jun 8, 2022
1 parent 816e035 commit 13ca54e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlflow/pytorch/_pytorch_autolog.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ def patched_fit(original, self, *args, **kwargs):
_log_early_stop_metrics(early_stop_callback, client, run_id)

if Version(pl.__version__) < Version("1.4.0"):
# pylint: disable-next=unexpected-keyword-arg
summary = str(ModelSummary(self.model, mode="full"))
else:
summary = str(ModelSummary(self.model, max_depth=-1))
Expand Down

0 comments on commit 13ca54e

Please sign in to comment.