Skip to content

Conversation

@edgchen1
Copy link
Contributor

Add a basic example plugin EP library with an associated Android package and a simple Android app that uses it.

// 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"))
Copy link
Contributor Author

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" }
Copy link
Contributor Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants