Skip to content

Commit

Permalink
Keep TODO at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
carmocca committed Sep 4, 2021
1 parent 38b4436 commit 1a17f87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytorch_lightning/loops/fit_loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,9 @@ def max_steps(self) -> int:
@max_steps.setter
def max_steps(self, value: int) -> None:
"""Sets the maximum number of steps (forwards to epoch_loop)"""
# TODO(@awaelchli): This setter is required by debugging connector (fast dev run), should be avoided
if value and value < -1:
raise MisconfigurationException(f"`max_steps` must be a positive integer or -1. You passed in {value}.")

# TODO(@awaelchli): This setter is required by debugging connector (fast dev run), should be avoided
self.epoch_loop.max_steps = value

@property
Expand Down

0 comments on commit 1a17f87

Please sign in to comment.