# RuntimeError: TFLite interpreter failed to create: Could not find the Flex delegate. Ensure the TensorFlow Lite Flex delegate is linked.

- **ID:** `tensorflow/tflite-flex-delegate-not-found`
- **Domain:** tensorflow
- **Category:** build_error
- **Error Code:** `TFLITE_FLEX_MISSING`
- **Verification:** ai_generated
- **Fix Rate:** 78%

## 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.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| tensorflow==2.16.1 | active | — | — |
| tflite-runtime==2.16.0 | active | — | — |

## Workarounds

1. **Install the full TensorFlow package which includes the Flex delegate, or build TFLite with Flex support enabled.** (85% success)
   ```
   Install the full TensorFlow package which includes the Flex delegate, or build TFLite with Flex support enabled.
   ```
2. **Convert the TFLite model without TensorFlow ops by replacing them with native TFLite ops before conversion.** (75% success)
   ```
   Convert the TFLite model without TensorFlow ops by replacing them with native TFLite ops before conversion.
   ```

## Dead Ends

- **** — Installing tflite-runtime without the Flex delegate package (tflite-support) does not resolve the missing delegate. (85% fail)
- **** — Enabling XNNPACK delegate only accelerates certain ops but does not provide Flex support for TensorFlow ops. (70% fail)
