Skip to content

Commit e2fa1f9

Browse files
authored
Reshare input before equalize (#6775)
1 parent e1aacdd commit e2fa1f9

File tree

1 file changed

+1
-1
lines changed
  • torchvision/prototype/transforms/functional

1 file changed

+1
-1
lines changed

torchvision/prototype/transforms/functional/_color.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def equalize_image_tensor(image: torch.Tensor) -> torch.Tensor:
227227
if image.numel() == 0:
228228
return image
229229

230-
return _equalize_image_tensor_vec(image.view(-1, height, width)).reshape(image.shape)
230+
return _equalize_image_tensor_vec(image.reshape(-1, height, width)).reshape(image.shape)
231231

232232

233233
equalize_image_pil = _FP.equalize

0 commit comments

Comments
 (0)