We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I changed ".to("cpu")" code to ".to("cuda")." but it print below error and not work
RuntimeError: Expected object of backend CPU but got backend CUDA for argument #2 'weight'
how i can run this code use gpu? i really want your advice thank you!
The text was updated successfully, but these errors were encountered:
i solved this problem
convert network to cuda net = net.to('cuda')
convert network input tensor to cuda keypoints = self.net(image.to("cuda"))
convert output tensor to cpu keypoints = keypoints[0].detach().cpu().numpy()
Sorry, something went wrong.
thanks for your solution.
No branches or pull requests
I changed ".to("cpu")" code to ".to("cuda")."
but it print below error and not work
RuntimeError: Expected object of backend CPU but got backend CUDA for argument #2 'weight'
how i can run this code use gpu?
i really want your advice
thank you!
The text was updated successfully, but these errors were encountered: