-
Notifications
You must be signed in to change notification settings - Fork 402
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
Accuracy, Precision, Recall raises RuntimeError when device="cuda" #917
Comments
Voleraa
added
bug / fix
Something isn't working
help wanted
Extra attention is needed
labels
Mar 28, 2022
Hi! thanks for your contribution!, great first issue! |
Borda
added
question
Further information is requested
and removed
bug / fix
Something isn't working
help wanted
Extra attention is needed
labels
Mar 28, 2022
Hi, in such case you also need to move the metric to the device accuracy = torchmetrics.Accuracy().cuda()
accuracy(preds.cuda(), target.cuda()) if you want to have a seamless experience, please use the PytorchLightning logging feature |
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug
Hi,
when I run the following code,
I get the following RuntimeError:
This error also occurs when I use Recall and Precision.
Environment
The text was updated successfully, but these errors were encountered: