Open SichangHe opened 1 year ago
I can verify that with tensorflow-cpu==2.9.2, it works on a x86_64 Windows machine. So, the problem is probably with Tensorflow changing their API between 2.9.2 and 2.12.
I could not, unfortunately, test with a lower tensorflow version on my Mac because I Numpy wouldn't install…
Describe the bug
I tried running this script in the Android example but it failed: https://github.com/adap/flower/blob/main/examples/android/tflite_convertor/convert_to_tflite.py
The latest time these files have been modified seems to be #1001, @akhilmathurs. That PR seemed to fix #956, but somehow it did not work for me.
Please ask for more information as needed. Thanks.
Steps/Code to Reproduce
Running at
/examples/android/tflite_convertor
:Or:
Initially, I ran with Python 3.11.3 installed with Homebrew and tensorflow-macos-2.12.0 installed with Pip. I later tried using Python 3.8.16 and Python 3.10.11 with tensorflow-macos-2.9.1 using Poetry, both failed with the same error message.
My machine is a M1 Mac running macOS 12.6.3.
Expected Results
The script should run successfully and produce 5
.tflite
files.Actual Results
From Python 3.11:
From Python 3.8 and Python 3.10: