Skip to content

Commit c8f7b14

Browse files
committed
Fix JIT-scriptability
1 parent ead34b3 commit c8f7b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/prototype/transforms/functional/_geometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def resize_image_tensor(
4040
antialias: Optional[bool] = None,
4141
) -> torch.Tensor:
4242
new_height, new_width = size
43-
num_channels, old_height, old_width = get_image_dims(image)
43+
num_channels, old_height, old_width = image.shape[-3:]
4444
batch_shape = image.shape[:-3]
4545
return _FT.resize(
4646
image.reshape((-1, num_channels, old_height, old_width)),

0 commit comments

Comments
 (0)