We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_fit_partial_multiple_times
1 parent e9e238a commit 78b65d7Copy full SHA for 78b65d7
1 file changed
tests/models/nn/transformers/test_base.py
@@ -483,6 +483,9 @@ def on_train_epoch_start(self) -> None:
483
)
484
t2 = deepcopy(model.fit_trainer)
485
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."
489
assert t1 is not None
490
assert t2 is not None
491
assert_pl_trainers_equal(t1, t2)
0 commit comments