-
Notifications
You must be signed in to change notification settings - Fork 399
Add BasicPluginEp example with Android package #545
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
base: main
Are you sure you want to change the base?
Conversation
| // Note: Typically, we would want to use a release version, but some of the plugin EP | ||
| // infrastructure is not available in a released version yet. We'll depend on a dev version. | ||
| //implementation("com.microsoft.onnxruntime:onnxruntime-android:latest.release") | ||
| implementation(files("lib/onnxruntime-android-1.24.0-dev+commit-75d35474.aar")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use onnxruntime-android 1.24 if that gets released before this PR is merged
| val modelBytes = readResourceBytes(R.raw.mul) | ||
| val sessionOptions = OrtSession.SessionOptions() | ||
| val allEpDevices = ortEnv.epDevices | ||
| val epDevicesToUse = allEpDevices.filter { it.epName == "BasicPluginEp" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the plugin EP package provide a constant for the plugin EP name or is the user expected to know it?
Add a basic example plugin EP library with an associated Android package and a simple Android app that uses it.