-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RuntimeError: expected scalar type Float but found Half #4
Comments
This error is usually seen when latest apex module is used. In our implementation, we use an older version (https://github.com/NVIDIA/apex/tree/088985936518be7e25795a30d8ab33affa9db6ed). I suggest downloading and recompiling the old one. An alternative is to turn off the apex. In such a way, you should remove apex stuffs in train_net.py and engine/trainer.py. |
我修改了pointnet2_modules.py的第154行 |
Nice try 👍 |
When I ran train_net.py, I got an error
then I found that the error occurred on the line 40 of pointnet2_modules.py, which is
new_features = self.mlps[i](new_features)
.The type of ‘new_features’ as input variable is 'torch.float32', but the type of output of 'self.mlps' is 'torch.float16'.
The text was updated successfully, but these errors were encountered: