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

RuntimeError: cuda runtime error (8) : invalid device function #17

Closed
limusen123 opened this issue Aug 18, 2019 · 1 comment
Closed

Comments

@limusen123
Copy link

My CUDA is 10.0, Python is 3.6, GPU computing power is 5.0, tensorflow version is 1.14.0, running train.py is wrong. Runtime Error: CUDA runtime error (8): invalid device function Another thing I don't understand is, when I run train. py, what is the number of data I read in 261, and where does 261 come from? 0%| | 0/261 [00:00<?,? It/s]

@leftthomas
Copy link
Owner

leftthomas commented Aug 20, 2019

@limusen123

  1. 261 is computed by DataLoader according to the batch_size and Len(dataset)
  2. CUDA runtime error is caused by pertained model, you should load model to cpu and then convert it to cuda

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