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 6239988 commit 016784bCopy full SHA for 016784b
torchvision/transforms/functional_tensor.py
@@ -4,7 +4,7 @@
4
5
6
def _is_tensor_a_torch_image(input):
7
- return len(input.shape) == 3
+ return input.ndim >= 2
8
9
10
def vflip(img):
0 commit comments