@@ -642,10 +642,10 @@ def _on_train_epoch_end_hook(self, processed_epoch_output) -> None:
642642 if is_overridden (hook_name , model_ref ):
643643 hook_fx = getattr (model_ref , hook_name )
644644 if is_param_in_hook_signature (hook_fx , "outputs" ):
645- self .warning_cache .warn (
645+ self .warning_cache .deprecation (
646646 "The signature of `ModelHooks.on_train_epoch_end` has changed in v1.3."
647647 " `outputs` parameter has been deprecated."
648- " Support for the old signature will be removed in v1.5" , DeprecationWarning
648+ " Support for the old signature will be removed in v1.5" ,
649649 )
650650 model_ref .on_train_epoch_end (processed_epoch_output )
651651 else :
@@ -944,10 +944,10 @@ def build_train_args(self, batch, batch_idx, opt_idx, hiddens):
944944 if len (self .trainer .optimizers ) > 1 :
945945 if self .trainer .has_arg ("training_step" , "optimizer_idx" ):
946946 if not self .trainer .lightning_module .automatic_optimization :
947- self .warning_cache .warn (
947+ self .warning_cache .deprecation (
948948 "`training_step` hook signature has changed in v1.3."
949949 " `optimizer_idx` argument has been removed in case of manual optimization. Support for"
950- " the old signature will be removed in v1.5" , DeprecationWarning
950+ " the old signature will be removed in v1.5" ,
951951 )
952952 args .append (opt_idx )
953953 elif not self .trainer .has_arg (
0 commit comments