Skip to content
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

TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first. #15

Open
Allenxq opened this issue Aug 20, 2021 · 3 comments

Comments

@Allenxq
Copy link

Allenxq commented Aug 20, 2021

TypeError: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

Thank you for your help!

@domyown
Copy link

domyown commented Nov 11, 2021

Did you solve the problem now?

@Allenxq
Copy link
Author

Allenxq commented Nov 11, 2021

I am sorry. I can not solve it.

@domyown
Copy link

domyown commented Nov 12, 2021

I could solve when i installed tensorflow version 1.13.1, not 2.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants