-
Notifications
You must be signed in to change notification settings - Fork 73
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
[tflite] Support Tensorflow Lite Selected Ops in nntrainer #2193
Comments
cibot: Thank you for posting issue #2193. The person in charge will reply soon. |
@DonghakPark Thanks for the instructions! I'm following the instructions on Ubuntu 20.04 machine. I rebuild the libtensorflowlite.so with bazelisk. However, I encounter an error while doing
I guess this is the issue with linking NNtrainer's libnntrainer.so with the newly-generated libtensorflowlite.so? |
@KirillP2323 |
Great, it run successfully, thanks! |
As mentioned you can build aarch64 with this command for aarch64
after build this .so file you should replace tensorflow lib in android build in you should run Related Issue ref - Install Tensorflow Lite 2.x on Raspverry Pi 4 (https://qengineering.eu/install-tensorflow-2-lite-on-raspberry-pi-4.html) If it doesn't work for Android selected ops please let me know |
I will close this issue |
we will update tensorflow lite package for support tensorflow lite selected ops
below is temp solution for using them
Build Tensorflow lite .so file with selected ops
Requirements
gcc, g++, glibc
for x86_64
for aarch64
You need to hide the system's openssl library. For this go to usr/include folder and make sudo mv openssl openssl.original.
Apply to local environments
move libtensorflowlite.so file to /usr/lib
make dir in /usr/include as name "tensorflowlite"
in /usr/include/tensorflowlite put flatbuffer and tensorflow (it come from github)
in nntrainer meson build -> ninja install again
in your app (you can run)
summary : just change pkgconfig file and make them to use new .so file we can run Simpleshot nntrainer Application
I test this method on my local PC (Ubuntu 22.04, x86_64)
The text was updated successfully, but these errors were encountered: