Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Call parent constructor

ananyamukh66e757570dd98
diff --git a/kornia/losses/psnr.py b/kornia/losses/psnr.py
index 042f9d930..55d037aba 100644
--- a/kornia/losses/psnr.py
+++ b/kornia/losses/psnr.py
@@ -19,7 +19,8 @@ class PSNR(nn.Module):
tensor(20.0000) # 10 * log(4/((1.2-1)**2)) / log(10)
"""
- def __init__(self, max_val):
+ def __init__(self, max_val) -> None:
+ super(PSNR, self).__init__()
self.max_val = max_val
def forward( # type: ignore