-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
breaking changeIncludes a breaking changeIncludes a breaking changebugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked onpriority: 0High priority taskHigh priority task
Milestone
Description
🐛 Bug
To Reproduce
def test_bug(tmpdir):
epochs = []
class TestModel(BoringModel):
def on_epoch_end(self):
epochs.append(self.current_epoch)
trainer = Trainer(
max_epochs=2,
limit_train_batches=1,
limit_val_batches=1,
default_root_dir=tmpdir,
checkpoint_callback=False,
logger=False,
weights_summary=None,
progress_bar_refresh_rate=0,
)
trainer.fit(TestModel())
trainer.max_epochs=4
trainer.fit(TestModel())
assert epochs == list(range(4))
# AssertionError [0, 1, 1, 2, 3] != [0, 1, 2, 3]Expected behavior
Assertion does not fail
Environment
Current master
Metadata
Metadata
Assignees
Labels
breaking changeIncludes a breaking changeIncludes a breaking changebugSomething isn't workingSomething isn't workinghelp wantedOpen to be worked onOpen to be worked onpriority: 0High priority taskHigh priority task