Open QuYJLeo opened 4 years ago
This is probably because you are using a newer pytorch version. Can you try using out_features.float()?
这可能是因为您使用的是较新的pytorch版本。您可以尝试使用out_features.float()吗?
谢谢您解决了,我当前使用noHandInvar_noScaleInvar的model测试为何准确度并不理想,您知道原因吗?
Using no hand side invariance and no scale invariance results in the model attempting to recognize which hand side you are showing, as well as the actual scale. It is a lot more difficult. The best performing model is using both invariances.
Also, please communicate in english. I had to translate your text via google translate.
Let me know if there is anything else.
This is probably because you are using a newer pytorch version. Can you try using out_features.float()?
Can I konw how do you solve the problem?? Thank you very much.
I have such a problem, do you know how to solve it, thank you
File "/usr/local/lib/python3.6/dist-packages/torch/nn/modules/linear.py", line 74, in init self.bias = Parameter(torch.Tensor(out_features)) TypeError: expected Float (got Long)