Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Remove methods with unnecessary super delegation. (#1202)

deepsource-autofix[bot]55bfbaf73700
diff --git a/kornia/color/gray.py b/kornia/color/gray.py
index 671f0eb32..301f5a97b 100644
--- a/kornia/color/gray.py
+++ b/kornia/color/gray.py
@@ -128,9 +128,6 @@ class GrayscaleToRgb(nn.Module):
>>> output = rgb(input) # 2x3x4x5
"""
- def __init__(self) -> None:
- super(GrayscaleToRgb, self).__init__()
-
def forward(self, image: torch.Tensor) -> torch.Tensor: # type: ignore
return grayscale_to_rgb(image)