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 ead34b3 commit c8f7b14Copy full SHA for c8f7b14
torchvision/prototype/transforms/functional/_geometry.py
@@ -40,7 +40,7 @@ def resize_image_tensor(
40
antialias: Optional[bool] = None,
41
) -> torch.Tensor:
42
new_height, new_width = size
43
- num_channels, old_height, old_width = get_image_dims(image)
+ num_channels, old_height, old_width = image.shape[-3:]
44
batch_shape = image.shape[:-3]
45
return _FT.resize(
46
image.reshape((-1, num_channels, old_height, old_width)),
0 commit comments