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
For tensor transforms, we need to consider torchscript support as well, which means the data type needs to be consistent, hence the conversion to float.
You can see here the PIL transform does not use a conversion.
@varung in addition to what @voldemortX said about type consistency, yes, we may also think about having translate API as float to support subpixel translations...
vision/torchvision/transforms/functional.py
Line 956 in f16322b
cc @vfdev-5
The text was updated successfully, but these errors were encountered: