You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TVTensor is documented as being a subclass of torch.Tensor specifically for transforms. Perhaps it could be added that they only constrain the shape of torch.Tensor?
For example, I only use the utility functions of transforms.v2 and, when to_image referred me to Image, I still had to check the source code to confirm it is just a torch.Tensor of shape (C x H x W).
Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered:
My only suggestion would be to add somewhere that TVTensors are just extensions of torch.Tensor with specified shape constraints. But it is just a preference and the tutorial already helps a lot, so this could be safely closed~
📚 The doc issue
TVTensor
is documented as being a subclass oftorch.Tensor
specifically for transforms. Perhaps it could be added that they only constrain the shape oftorch.Tensor
?For example, I only use the utility functions of
transforms.v2
and, whento_image
referred me toImage
, I still had to check the source code to confirm it is just atorch.Tensor
of shape(C x H x W)
.Suggest a potential alternative/fix
No response
The text was updated successfully, but these errors were encountered: