Open FLSAlg opened 3 years ago
Welcome to Apache MXNet (incubating)! We are on a mission to democratize AI, and we are glad that you are contributing to it by opening this issue. Please make sure to include all the relevant context, and one of the @apache/mxnet-committers will be here shortly. If you are interested in contributing to our project, let us know! Also, be sure to check out our guide on contributing to MXNet and our development guides wiki.
Description
if npx.set_np() sets numpy-array semantics on then RandomRotation will not work
Error Message
File "C:\Users.....\venv\lib\site-packages\mxnet\gluon\block.py", line 682, in call out = self.forward(*args) File "C:\Users.......\venv\lib\site-packages\mxnet\gluon\data\vision\transforms.py", line 269, in forward raise TypeError("This transformation only supports float32. " TypeError: This transformation only supports float32. Consider calling it after ToTensor
To Reproduce
Steps to reproduce
What have you tried to solve it?
I suspect there are more transforms with this problem - dont have time to search and catalog all appearnces. My work around is to deactivate np semantics with npx.reset_np() before calling functions from transforms and then reactivate with npx.set_np() afterwards (the problem appears in a large project)
Environment
mxnet 1.7.0.post2