{
  "id": "tensorflow/tflite-flex-delegate-not-found",
  "signature": "RuntimeError: TFLite interpreter failed to create: Could not find the Flex delegate. Ensure the TensorFlow Lite Flex delegate is linked.",
  "signature_zh": "RuntimeError: TFLite 解释器创建失败：找不到 Flex 委托。确保 TensorFlow Lite Flex 委托已链接。",
  "regex": "RuntimeError.*TFLite interpreter failed to create.*Could not find the Flex delegate",
  "domain": "tensorflow",
  "category": "build_error",
  "subcategory": null,
  "root_cause": "The TFLite model uses TensorFlow ops that require the Flex delegate, but the interpreter was built without Flex support or the delegate library is not loaded.",
  "root_cause_type": "generic",
  "root_cause_zh": "TFLite 模型使用了需要 Flex 委托的 TensorFlow 算子，但解释器构建时未包含 Flex 支持或未加载委托库。",
  "versions": [
    {
      "version": "tensorflow==2.16.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "tflite-runtime==2.16.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Installing tflite-runtime without the Flex delegate package (tflite-support) does not resolve the missing delegate.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Enabling XNNPACK delegate only accelerates certain ops but does not provide Flex support for TensorFlow ops.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Install the full TensorFlow package which includes the Flex delegate, or build TFLite with Flex support enabled.",
      "success_rate": 0.85,
      "how": "Install the full TensorFlow package which includes the Flex delegate, or build TFLite with Flex support enabled.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Convert the TFLite model without TensorFlow ops by replacing them with native TFLite ops before conversion.",
      "success_rate": 0.75,
      "how": "Convert the TFLite model without TensorFlow ops by replacing them with native TFLite ops before conversion.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Install the full TensorFlow package which includes the Flex delegate, or build TFLite with Flex support enabled.",
    "Convert the TFLite model without TensorFlow ops by replacing them with native TFLite ops before conversion."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.tensorflow.org/lite/guide/ops_select",
  "official_doc_section": null,
  "error_code": "TFLITE_FLEX_MISSING",
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.78,
  "resolvable": "true",
  "first_seen": "2024-04-12",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}