We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 66f310a commit d18455cCopy full SHA for d18455c
pytorch_lightning/trainer/trainer.py
@@ -1211,6 +1211,13 @@ def _cache_logged_metrics(self):
1211
self.logger_connector.cache_logged_metrics()
1212
1213
def call_hook(self, hook_name: str, *args, **kwargs) -> Any:
1214
+ # Note this implementation is copy/pasted into the TrainLoop class
1215
+ # in TrainLoop._on_train_epoch_end_hook
1216
+ # This was done to manage the deprecation of an argument to
1217
+ # on_train_epoch_end
1218
+ # If making chnages to this function, ensure that those changes are also made to
1219
+ # TrainLoop._on_train_epoch_end_hook
1220
+
1221
# set hook_name to model + reset Result obj
1222
skip = self._reset_result_and_set_hook_fx_name(hook_name)
1223
0 commit comments