Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion tests/tests_pytorch/tuner/test_lr_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ def configure_optimizers(self):

# Verify learning rate finder ran and has results
assert lr_finder_callback.optimal_lr is not None, "Learning rate finder should have results"
assert lr_finder_callback.optimal_lr.suggestion() > 0, "Learning rate suggestion should be positive"
suggestion = lr_finder_callback.optimal_lr.suggestion()
if suggestion is not None:
assert suggestion > 0, "Learning rate suggestion should be positive"


def test_gradient_correctness():
Expand Down
Loading