Question:
I’m trying to test the principle of
transforms.Resize
while I find a confusing point. When I run the below codes:
A bug occurs:
However, when I change the size of the tensor, the problem is solved:
I’m wondering why this happens as the bug description has nothing to do with size but type. If anyone has any ideas on the reason, please let me know, thanks for your time!
Answer:
Change the datatype to float …
Make sure you know what the input data is.
If you have better answer, please add a comment about this, thank you!