I think you are using an older version of TFLite (e.g. 2.5.0). Please update your tflite-runtime to the latest version (2.7.0 at the time of this post) by running pip install tflite-runtime --upgrade.