Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

Remove assignment of variable to itself (#1079)

deepsource-autofix[bot]f85c7278868a
diff --git a/kornia/utils/image.py b/kornia/utils/image.py
index 7986edeac..14f963ee5 100644
--- a/kornia/utils/image.py
+++ b/kornia/utils/image.py
@@ -118,7 +118,7 @@ def tensor_to_image(tensor: torch.Tensor) -> np.ndarray:
if len(input_shape) == 2:
# (H, W) -> (H, W)
- image = image
+ pass
elif len(input_shape) == 3:
# (C, H, W) -> (H, W, C)
if input_shape[0] == 1: