Skip to content

Commit da5276b

Browse files
Update tests/tests_pytorch/callbacks/test_weight_averaging.py
Co-authored-by: GdoongMathew <[email protected]>
1 parent 8821df0 commit da5276b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/tests_pytorch/callbacks/test_weight_averaging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ def test_ema_weight_averaging_should_update(tmp_path):
415415
def test_ema_weight_averaging_checkpoint_save_load(tmp_path):
416416
"""Test that EMAWeightAveraging correctly saves and loads checkpoints."""
417417
model = TestModel()
418+
model.crash_on_epoch = 2
418419
dataset = RandomDataset(32, 32)
419420

420421
callback = EMAWeightAveraging(decay=0.99, update_every_n_steps=2)

0 commit comments

Comments
 (0)