Skip to content

Commit 270e02e

Browse files
committed
Corrected type hint mistakes.
1 parent 3f6c5a5 commit 270e02e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

torchvision/transforms/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ def adjust_saturation(img: Tensor, saturation_factor: float) -> Tensor:
714714
return F_t.adjust_saturation(img, saturation_factor)
715715

716716

717-
def adjust_hue(img: Tensor, hue_factor: float) -> Tensor:
717+
def adjust_hue(img, hue_factor: float):
718718
"""Adjust hue of an image.
719719
720720
The image hue is adjusted by converting the image to HSV and

torchvision/transforms/functional_pil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def adjust_saturation(img, saturation_factor):
118118

119119

120120
@torch.jit.unused
121-
def adjust_hue(img: Tensor, hue_factor: float) -> Tensor:
121+
def adjust_hue(img, hue_factor: float):
122122
"""Adjust hue of an image.
123123
124124
The image hue is adjusted by converting the image to HSV and

0 commit comments

Comments
 (0)