Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

aarch64/arm64 Tensorflow Lite runtime wheels not compatible with silicon OSX ? #67422

Open
huats opened this issue May 12, 2024 · 3 comments
Open
Assignees
Labels
comp:lite TF Lite related issues stat:awaiting response Status - Awaiting response from author subtype:macOS macOS Build/Installation issues type:build/install Build and install issues

Comments

@huats
Copy link

huats commented May 12, 2024

I have followed the instructions available here to create some wheel files for aarch64 using the command

PYTHON=python3 TENSORFLOW_TARGET=aarch64 tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh

From my understanding I should be able to use that wheel on my OSX silicon macbook (m2) since aarch64 is arm64

But I get the following error

pip install tensorflow/lite/tools/pip_package/gen/tflite_pip/python3/dist/tflite_runtime-2.16.1-cp310-cp310-linux_aarch64.whl
ERROR: tflite_runtime-2.16.1-cp310-cp310-linux_aarch64.whl is not a supported wheel on this platform.

Am I doing something wrong ? Thanks in advance

@huats
Copy link
Author

huats commented May 13, 2024

I realize that I am trying to use on mac a whl file created for linux... I am pretty sure it is the issue, but if someone can confirm that to me I would appreciate...

@RavinduTharanga
Copy link

RavinduTharanga commented May 13, 2024

Yes it is. Try linux os with aarch64 type processor. aarch64 architecture not supported mac.

@Venkat6871 Venkat6871 added the comp:lite TF Lite related issues label May 15, 2024
@Venkat6871 Venkat6871 assigned sawantkumar and unassigned Venkat6871 May 15, 2024
@sawantkumar sawantkumar added type:build/install Build and install issues subtype:macOS macOS Build/Installation issues labels May 23, 2024
@sawantkumar
Copy link

hi @huats ,

Let me know if the provided solution worked for you.

@sawantkumar sawantkumar added the stat:awaiting response Status - Awaiting response from author label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:lite TF Lite related issues stat:awaiting response Status - Awaiting response from author subtype:macOS macOS Build/Installation issues type:build/install Build and install issues
Projects
None yet
Development

No branches or pull requests

4 participants