@@ -38,9 +38,9 @@ def __init__(self):
3838 self .on_train_end_called = False
3939 self .on_pretrain_routine_start_called = False
4040 self .on_pretrain_routine_end_called = False
41- self .on_validation_start_called = False
41+ self .on_validation_epoch_start_called = False
4242 self .on_validation_end_called = False
43- self .on_test_start_called = False
43+ self .on_test_epoch_start_called = False
4444 self .on_test_end_called = False
4545
4646 def setup (self , trainer , pl_module , stage : str ):
@@ -131,17 +131,17 @@ def on_pretrain_routine_end(self, trainer, pl_module):
131131 _check_args (trainer , pl_module )
132132 self .on_pretrain_routine_end_called = True
133133
134- def on_validation_start (self , trainer , pl_module ):
134+ def on_validation_epoch_start (self , trainer , pl_module ):
135135 _check_args (trainer , pl_module )
136- self .on_validation_start_called = True
136+ self .on_validation_epoch_start_called = True
137137
138138 def on_validation_end (self , trainer , pl_module ):
139139 _check_args (trainer , pl_module )
140140 self .on_validation_end_called = True
141141
142- def on_test_start (self , trainer , pl_module ):
142+ def on_test_epoch_start (self , trainer , pl_module ):
143143 _check_args (trainer , pl_module )
144- self .on_test_start_called = True
144+ self .on_test_epoch_start_called = True
145145
146146 def on_test_end (self , trainer , pl_module ):
147147 _check_args (trainer , pl_module )
@@ -180,9 +180,9 @@ def on_test_end(self, trainer, pl_module):
180180 assert not test_callback .on_train_end_called
181181 assert not test_callback .on_pretrain_routine_start_called
182182 assert not test_callback .on_pretrain_routine_end_called
183- assert not test_callback .on_validation_start_called
183+ assert not test_callback .on_validation_epoch_start_called
184184 assert not test_callback .on_validation_end_called
185- assert not test_callback .on_test_start_called
185+ assert not test_callback .on_test_epoch_start_called
186186 assert not test_callback .on_test_end_called
187187
188188 # fit model
@@ -211,9 +211,9 @@ def on_test_end(self, trainer, pl_module):
211211 assert not test_callback .on_train_end_called
212212 assert not test_callback .on_pretrain_routine_start_called
213213 assert not test_callback .on_pretrain_routine_end_called
214- assert not test_callback .on_validation_start_called
214+ assert not test_callback .on_validation_epoch_start_called
215215 assert not test_callback .on_validation_end_called
216- assert not test_callback .on_test_start_called
216+ assert not test_callback .on_test_epoch_start_called
217217 assert not test_callback .on_test_end_called
218218
219219 trainer .fit (model )
@@ -238,11 +238,11 @@ def on_test_end(self, trainer, pl_module):
238238 assert test_callback .on_train_end_called
239239 assert test_callback .on_pretrain_routine_start_called
240240 assert test_callback .on_pretrain_routine_end_called
241- assert test_callback .on_validation_start_called
241+ assert test_callback .on_validation_epoch_start_called
242242 assert test_callback .on_validation_end_called
243243 assert not test_callback .on_test_batch_start_called
244244 assert not test_callback .on_test_batch_end_called
245- assert not test_callback .on_test_start_called
245+ assert not test_callback .on_test_epoch_start_called
246246 assert not test_callback .on_test_end_called
247247
248248 # reset setup teardown callback
@@ -258,9 +258,9 @@ def on_test_end(self, trainer, pl_module):
258258 assert test_callback .teardown_called
259259 assert test_callback .on_test_batch_start_called
260260 assert test_callback .on_test_batch_end_called
261- assert test_callback .on_test_start_called
261+ assert test_callback .on_test_epoch_start_called
262262 assert test_callback .on_test_end_called
263- assert not test_callback .on_validation_start_called
263+ assert not test_callback .on_validation_epoch_start_called
264264 assert not test_callback .on_validation_end_called
265265 assert not test_callback .on_validation_batch_end_called
266266 assert not test_callback .on_validation_batch_start_called
0 commit comments