Skip to content

🐍 Geometric Computer Vision Library for Spatial AI

removed output.clone() in _transform_output_shape() (#3510)

Hendrik010296d0283a
diff --git a/kornia/augmentation/utils/helpers.py b/kornia/augmentation/utils/helpers.py
index 3be42706b..de017f719 100644
--- a/kornia/augmentation/utils/helpers.py
+++ b/kornia/augmentation/utils/helpers.py
@@ -239,7 +239,7 @@ def _transform_output_shape(
torch.Tensor
"""
- out_tensor = output.clone()
+ out_tensor = output
for dim in range(len(out_tensor.shape) - len(shape)):
idx = 0