You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# get the right TF Lite runtime packages based on OS and python version: https://www.tensorflow.org/lite/guide/python#install_just_the_tensorflow_lite_interpreter
tflite_python=None
tflite_machine=None
# get the right python string for the version
ifpython_version=='3.5':
tflite_python='cp35-cp35m'
elifpython_version=='3.6':
tflite_python='cp36-cp36m'
elifpython_version=='3.7':
tflite_python='cp37-cp37m'
elifpython_version=='3.8':
tflite_python='cp38-cp38'
# get the right machine string
ifsys.platform=='win32':
tflite_machine='win_amd64'
elifsys.platform=='darwin':
tflite_machine='macosx_10_15_x86_64'
elifsys.platform=='linux':
ifplatform.machine() =='x86_64':
tflite_machine='linux_x86_64'
elifplatform.machine() =='armv7l':
tflite_machine='linux_armv7l'
# add it to the requirements, or print the location to find the version to install
f"Couldn't find tflite_runtime for your platform {sys.platform}, machine {platform.machine()}, and python version {python_version}, please see the install guide for the right version: https://www.tensorflow.org/lite/guide/python#install_just_the_tensorflow_lite_interpreter"