RuntimeError: cuda runtime error (8) : invalid device function
limusen123 opened this issue · comments
limusen123 commented
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]
Hao Ren commented
- 261 is computed by
DataLoader
according to thebatch_size
and Len(dataset) - CUDA runtime error is caused by pertained model, you should load model to cpu and then convert it to cuda