We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63aa0eb commit 9945468Copy full SHA for 9945468
torchvision/transforms/v2/functional/_geometry.py
@@ -236,7 +236,7 @@ def _compute_resized_output_size(
236
237
238
def resize(
239
- inpt: torch.Tensor,
+ inpt: Union[PIL.Image.Image, torch.Tensor],
240
size: Optional[list[int]],
241
interpolation: Union[InterpolationMode, int] = InterpolationMode.BILINEAR,
242
max_size: Optional[int] = None,
@@ -1509,7 +1509,7 @@ def rotate_video(
1509
1510
1511
def pad(
1512
- inpt: Union[Image.Image, torch.Tensor],
1513
padding: list[int],
1514
fill: Optional[Union[int, float, list[float]]] = None,
1515
padding_mode: str = "constant",
0 commit comments