Skip to content

Commit 78b65d7

Browse files
committed
add comment to test_fit_partial_multiple_times test
1 parent e9e238a commit 78b65d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/models/nn/transformers/test_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ def on_train_epoch_start(self) -> None:
483483
)
484484
t2 = deepcopy(model.fit_trainer)
485485

486+
# Since for the second we are fitting on an empty dataset,
487+
# the trainer state should be kept exactly the same as after the first fit
488+
# to prove that fit_partial does not change trainer state before proceeding to training."
486489
assert t1 is not None
487490
assert t2 is not None
488491
assert_pl_trainers_equal(t1, t2)

0 commit comments

Comments
 (0)