tensorflow runtime_error ai_generated true

InternalError: failed to initialize CUDA

ID: tensorflow/cuda-init-failure

Also available as: JSON · Markdown
78%Fix Rate
83%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
2 active

Root Cause

CUDA driver/toolkit version mismatch or no GPU available.

generic

Workarounds

  1. 90% success Match CUDA/cuDNN version to TF build: check build configs
  2. 88% success Verify GPU with nvidia-smi before running TF

Dead Ends

Common approaches that don't work:

  1. Install latest CUDA regardless of TF version 85% fail

    TF requires specific CUDA version

  2. Set CUDA_VISIBLE_DEVICES without checking driver 70% fail

    Same error if driver wrong