We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 86cf068 commit 5e37e07Copy full SHA for 5e37e07
tests/tests_pytorch/checkpointing/test_model_checkpoint.py
@@ -1669,9 +1669,9 @@ def val_dataloader(self) -> DataLoader:
1669
1670
1671
def test_save_last_without_save_on_train_epoch_and_without_val(tmp_path):
1672
- """Test that save_last=True when save_on_train_epoch_end=False."""
+ """Test that save_last=True works correctly when save_on_train_epoch_end=False in a model without validation."""
1673
1674
- # Remove validation methods to reproduce the bug
+ # Remove validation methods to test the edge case
1675
model = BoringModel()
1676
model.validation_step = None
1677
model.val_dataloader = None
0 commit comments