{
  "id": "tensorflow/gpu-tf32-disabled",
  "signature": "InternalError: Could not find valid device for node. Node: 'conv2d/Conv2D' Op:Conv2D. This is probably because CUDA_OPERATION_DISABLED or TF32 is disabled.",
  "signature_zh": "内部错误：找不到节点的有效设备。节点：'conv2d/Conv2D' 操作：Conv2D。这可能是因为 CUDA_OPERATION_DISABLED 或 TF32 被禁用。",
  "regex": "InternalError: Could not find valid device for node.*Conv2D.*TF32 is disabled",
  "domain": "tensorflow",
  "category": "gpu_error",
  "subcategory": null,
  "root_cause": "TensorFlow cannot find a valid GPU device for the Conv2D operation, often due to CUDA operation restrictions (e.g., compute capability < 7.0) or TF32 being disabled on Turing+ GPUs.",
  "root_cause_type": "generic",
  "root_cause_zh": "TensorFlow 无法为 Conv2D 操作找到有效的 GPU 设备，通常是由于 CUDA 操作限制（例如，计算能力低于 7.0）或图灵及以上 GPU 上 TF32 被禁用。",
  "versions": [
    {
      "version": "tensorflow>=2.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "cuda>=11.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "cudnn>=8.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Set TF_CPP_MIN_LOG_LEVEL=3 to suppress warnings",
      "why_fails": "Silences the error but does not resolve the underlying GPU device issue.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Reinstall TensorFlow without specifying GPU support",
      "why_fails": "Installing CPU-only TensorFlow will not enable GPU operations.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Enable TF32 explicitly: tf.config.experimental.enable_tensor_float_32_execution(True)",
      "success_rate": 0.85,
      "how": "Enable TF32 explicitly: tf.config.experimental.enable_tensor_float_32_execution(True)",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check GPU compute capability and set CUDA_VISIBLE_DEVICES to a compatible GPU: export CUDA_VISIBLE_DEVICES=0",
      "success_rate": 0.75,
      "how": "Check GPU compute capability and set CUDA_VISIBLE_DEVICES to a compatible GPU: export CUDA_VISIBLE_DEVICES=0",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update CUDA and cuDNN to versions compatible with your GPU (e.g., CUDA 11.2+ for Turing/Ampere): conda install cudatoolkit=11.2 cudnn=8.1",
      "success_rate": 0.8,
      "how": "Update CUDA and cuDNN to versions compatible with your GPU (e.g., CUDA 11.2+ for Turing/Ampere): conda install cudatoolkit=11.2 cudnn=8.1",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Enable TF32 explicitly: tf.config.experimental.enable_tensor_float_32_execution(True)",
    "Check GPU compute capability and set CUDA_VISIBLE_DEVICES to a compatible GPU: export CUDA_VISIBLE_DEVICES=0",
    "Update CUDA and cuDNN to versions compatible with your GPU (e.g., CUDA 11.2+ for Turing/Ampere): conda install cudatoolkit=11.2 cudnn=8.1"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.tensorflow.org/guide/gpu#limiting_gpu_memory_growth",
  "official_doc_section": null,
  "error_code": "E004",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.85,
  "resolvable": "true",
  "first_seen": "2023-08-15",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}