Skip to content

Commit d18455c

Browse files
committed
Update trainer.py
1 parent 66f310a commit d18455c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytorch_lightning/trainer/trainer.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,13 @@ def _cache_logged_metrics(self):
12111211
self.logger_connector.cache_logged_metrics()
12121212

12131213
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+
12141221
# set hook_name to model + reset Result obj
12151222
skip = self._reset_result_and_set_hook_fx_name(hook_name)
12161223

0 commit comments

Comments
 (0)