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

feat: wasmedge_tensorflowlite plug-in support for Android platform. #3302

Open
mtobin-tdab opened this issue Mar 22, 2024 · 5 comments
Open
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@mtobin-tdab
Copy link

Summary

Given that WasmEdge-tensorflow was migrated to the wasmedge_tensorflowlite and supported Android, is there a plan to add Android support to the plugin?

Changlog ref

Details

Would basically use the previous WasmEdge-tensorflow implementation to make the tensorflow-lite plugin available on Android

Appendix

No response

@mtobin-tdab mtobin-tdab added the enhancement New feature or request label Mar 22, 2024
@hydai
Copy link
Member

hydai commented Mar 23, 2024

@q82419
I found we have the CI and release workflow for the Android support. Do you think we should also add it to our current workflow?

https://github.com/second-state/WasmEdge-tensorflow/blob/master/.github/workflows/release.yml#L273-L318

@q82419
Copy link
Collaborator

q82419 commented Mar 25, 2024

Well, the following steps are necessary:

  • Check the plug-in system available on WasmEdge for Android.
  • Build the new TensorFlow-Lite shared library for Android.
  • Test on an Android device.

@hydai hydai added the help wanted Extra attention is needed label Apr 18, 2024
@hydai
Copy link
Member

hydai commented Apr 18, 2024

Since we don't have the engineering power and hardware resources to support this plugin on the Android platform, I'll mark this issue as a help-wanted issue and leave it to the community.

@hangedfish
Copy link
Collaborator

In vcpkg, there is a package named plugin-wasi-nn-backend-tensorflowlite, which can be successfully built for arm64-android. Does the wasmedge_tensorflowlite plugin differ from this one?

patch vcpkg/ports/wasmedge/vcpkg.json file features.plugins.suppoorts and features.plugin-wasi-nn-backend-tensorflowlite.suppoorts

then

$ vcpkg install 'wasmedge[core,tools,plugins,plugin-wasi-nn-backend-tensorflowlite]':arm64-android

@hydai
Copy link
Member

hydai commented Apr 19, 2024

@hangedfish
That's the same one.
You can choose the different backend by the options.
https://github.com/microsoft/vcpkg/blob/master/ports/wasmedge/portfile.cmake#L35-L50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
Status: No status
Development

No branches or pull requests

4 participants