Fix ToTensor when PIL Image has mode F
Fixes https://github.com/pytorch/vision/issues/399. The only case of floating point supported by PIL seems to be `F`, so this should fix it.
Showing
Please register or sign in to comment
Fixes https://github.com/pytorch/vision/issues/399. The only case of floating point supported by PIL seems to be `F`, so this should fix it.