{"id":24706,"library":"tflite-runtime","title":"TFLite Runtime","description":"TensorFlow Lite Runtime is a lightweight library for on-device machine learning inference, optimized for mobile and embedded devices. Version 2.14.0 supports model conversion and execution with hardware acceleration. Releases are tied to TensorFlow Lite versions.","status":"active","version":"2.14.0","language":"python","source_language":"en","source_url":"https://github.com/tensorflow/tflite-micro/tree/main/tflite-runtime","tags":["tensorflow-lite","onn-device-ml","inference","embedded"],"install":[{"cmd":"pip install tflite-runtime","lang":"bash","label":"pip install"}],"dependencies":[],"imports":[{"note":"Interpreter is in tflite_runtime.interpreter module, not top-level.","wrong":"from tflite_runtime import Interpreter","symbol":"Interpreter","correct":"from tflite_runtime.interpreter import Interpreter"},{"note":"Use for GPU or Edge TPU delegates.","wrong":"","symbol":"load_delegate","correct":"from tflite_runtime.interpreter import load_delegate"}],"quickstart":{"code":"import numpy as np\nfrom tflite_runtime.interpreter import Interpreter\n\ninterpreter = Interpreter(model_path='model.tflite')\ninterpreter.allocate_tensors()\n\ninput_details = interpreter.get_input_details()\noutput_details = interpreter.get_output_details()\n\ninput_data = np.array([[1.0, 2.0, 3.0]], dtype=np.float32)\ninterpreter.set_tensor(input_details[0]['index'], input_data)\ninterpreter.invoke()\noutput_data = interpreter.get_tensor(output_details[0]['index'])\nprint(output_data)","lang":"python","description":"Basic inference with TFLite Runtime."},"warnings":[{"fix":"Use full TensorFlow for training; export to TFLite and ensure ops are supported.","message":"tflite_runtime does not include training ops. If your model uses custom ops or training-only ops, inference may fail.","severity":"breaking","affected_versions":"all"},{"fix":"Use `from tflite_runtime.interpreter import Interpreter`.","message":"The Interpreter class must be imported from tflite_runtime.interpreter, not from top-level tflite_runtime. Common mistake: `from tflite_runtime import Interpreter` -> AttributeError.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade to Python 3.7+ or use an older tflite-runtime version if absolutely necessary.","message":"Support for Python 3.6 ended in tflite-runtime 2.7. Check your Python version if you encounter installation errors.","severity":"deprecated","affected_versions":">=2.7"}],"env_vars":null,"search_vec":"'2.14.0':24 'acceler':32 'convers':27 'devic':13,22,45 'embed':21,48 'execut':29 'hardwar':31 'infer':16,47 'learn':15 'librari':9 'lightweight':8 'lite':4,38,42 'machin':14 'ml':46 'mobil':19 'model':26 'on-devic':11 'onn':44 'onn-device-ml':43 'optim':17 'releas':33 'runtim':2,5 'support':25 'tensorflow':3,37,41 'tensorflow-lit':40 'tflite':1 'tie':35 'version':23,39","created_at":"2026-05-01T08:14:30.212930+00:00","updated_at":"2026-05-01T08:14:30.212930+00:00","problems":{"verify_error":"× No solution found when resolving dependencies:\n  ╰─▶ Because all versions of tflite-runtime have no wheels with a matching\n      Python ABI tag (e.g., `cp312`) and you require tflite-runtime, we can\n      conclude that your requirements are unsatisfiable.\n\n      hint: You require CPython 3.12 (`cp"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"2.14.0","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.tensorflow.org/lite/","github":null,"docs":null,"changelog":null,"pypi":"https://pypi.org/project/tflite-runtime/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["ai-ml"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"install_fail","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}