Skip to content

Commit fb310d9

Browse files
committed
clean up
1 parent 8963380 commit fb310d9

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/autocast/models/denorm_mixin.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,12 @@ class DenormMixin(L.LightningModule):
1818
def on_fit_start(self):
1919
"""Automatically connect to datamodule's normalizer at training start."""
2020
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()
21+
super().on_fit_start()
2422

2523
def on_predict_start(self):
2624
"""Automatically connect to datamodule's normalizer at prediction start."""
2725
self._connect_normalizer()
28-
# Call parent hook if it exists (for multiple inheritance)
29-
if hasattr(super(), "on_predict_start"):
30-
super().on_predict_start()
26+
super().on_predict_start()
3127

3228
def _connect_normalizer(self):
3329
"""

0 commit comments

Comments
 (0)