We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8963380 commit fb310d9Copy full SHA for fb310d9
1 file changed
src/autocast/models/denorm_mixin.py
@@ -18,16 +18,12 @@ class DenormMixin(L.LightningModule):
18
def on_fit_start(self):
19
"""Automatically connect to datamodule's normalizer at training start."""
20
self._connect_normalizer()
21
- # Call parent hook if it exists (for multiple inheritance)
22
- if hasattr(super(), "on_fit_start"):
23
- super().on_fit_start()
+ super().on_fit_start()
24
25
def on_predict_start(self):
26
"""Automatically connect to datamodule's normalizer at prediction start."""
27
28
29
- if hasattr(super(), "on_predict_start"):
30
- super().on_predict_start()
+ super().on_predict_start()
31
32
def _connect_normalizer(self):
33
"""
0 commit comments