tensorflow
runtime_error
ai_generated
true
InternalError: failed to initialize CUDA
ID: tensorflow/cuda-init-failure
78%Fix Rate
83%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 2 | active | — | — | — |
Root Cause
CUDA driver/toolkit version mismatch or no GPU available.
genericWorkarounds
-
90% success Match CUDA/cuDNN version to TF build: check build configs
-
88% success Verify GPU with nvidia-smi before running TF
Dead Ends
Common approaches that don't work:
-
Install latest CUDA regardless of TF version
85% fail
TF requires specific CUDA version
-
Set CUDA_VISIBLE_DEVICES without checking driver
70% fail
Same error if driver wrong