@@ -410,46 +410,65 @@ def on_train_end(self) -> None:
410410 ([EarlyStopping (monitor = 'abc' ), EarlyStopping (monitor = 'cba' , patience = 3 )], 3 , False , None , 1 ),
411411 ([EarlyStopping (monitor = 'cba' , patience = 3 ),
412412 EarlyStopping (monitor = 'abc' )], 3 , False , None , 1 ),
413- pytest .param ([EarlyStopping (monitor = 'abc' ),
414- EarlyStopping (monitor = 'cba' , patience = 3 )],
415- 3 ,
416- False ,
417- 'ddp_cpu' ,
418- 2 ,
419- marks = RunIf (skip_windows = True )),
420- pytest .param ([EarlyStopping (monitor = 'cba' , patience = 3 ),
421- EarlyStopping (monitor = 'abc' )],
422- 3 ,
423- False ,
424- 'ddp_cpu' ,
425- 2 ,
426- marks = RunIf (skip_windows = True )),
427- ([
428- EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
429- EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
430- ], 3 , True , None , 1 ),
431- ([
432- EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
433- EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
434- ], 3 , True , None , 1 ),
435- pytest .param ([
436- EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
437- EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
438- ],
439- 3 ,
440- True ,
441- 'ddp_cpu' ,
442- 2 ,
443- marks = RunIf (skip_windows = True )),
444- pytest .param ([
445- EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
446- EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
447- ],
448- 3 ,
449- True ,
450- 'ddp_cpu' ,
451- 2 ,
452- marks = RunIf (skip_windows = True )),
413+ pytest .param (
414+ [EarlyStopping (monitor = 'abc' ), EarlyStopping (monitor = 'cba' , patience = 3 )],
415+ 3 ,
416+ False ,
417+ 'ddp_cpu' ,
418+ 2 ,
419+ marks = RunIf (skip_windows = True ),
420+ ),
421+ pytest .param (
422+ [EarlyStopping (monitor = 'cba' , patience = 3 ),
423+ EarlyStopping (monitor = 'abc' )],
424+ 3 ,
425+ False ,
426+ 'ddp_cpu' ,
427+ 2 ,
428+ marks = RunIf (skip_windows = True ),
429+ ),
430+ (
431+ [
432+ EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
433+ EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
434+ ],
435+ 3 ,
436+ True ,
437+ None ,
438+ 1 ,
439+ ),
440+ (
441+ [
442+ EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
443+ EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
444+ ],
445+ 3 ,
446+ True ,
447+ None ,
448+ 1 ,
449+ ),
450+ pytest .param (
451+ [
452+ EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
453+ EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
454+ ],
455+ 3 ,
456+ True ,
457+ 'ddp_cpu' ,
458+ 2 ,
459+ marks = RunIf (skip_windows = True ),
460+ ),
461+ pytest .param (
462+ [
463+ EarlyStopping (monitor = 'cba' , patience = 3 , check_on_train_epoch_end = True ),
464+ EarlyStopping (monitor = 'abc' , check_on_train_epoch_end = True ),
465+ ],
466+ 3 ,
467+ True ,
468+ 'ddp_cpu' ,
469+ 2 ,
470+ marks = RunIf (skip_windows = True ),
471+ ),
453472 ],
454473)
455474def test_multiple_early_stopping_callbacks (
0 commit comments