mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-06 00:03:22 +00:00
### Description <!-- Describe your changes. --> Update some testing dependencies. Fix various warnings. Mainly around documentation (existing) and unit test usage (mainly resulting from xunit update). Invalid angle brackets for generics in documentation were changed to use curly braces based on https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/xmldoc/ > To refer to generic identifiers in code reference (cref) elements, you can use either the escape characters (for example, cref="List<T>") or braces (cref="List{T}"). As a special case, the compiler parses the braces as angle brackets to make the documentation comment less cumbersome to the author when referring to generic identifiers. ### Motivation and Context <!-- - Why is this change required? What problem does it solve? - If it fixes an open issue, please link to the issue here. --> |
||
|---|---|---|
| .. | ||
| Assets | ||
| Properties | ||
| Resources | ||
| InferenceTest.android.cs | ||
| MainActivity.cs | ||
| Microsoft.ML.OnnxRuntime.Tests.Droid.csproj | ||
| ReadMe.md | ||
To test you need the libonnxruntime.so for the various Android architectures.
The test project looks for these in '......\build\Android<architecture>\Release\libonnxruntime.so'. e.g. '......\build\Android\arm64-v8a\Release\libonnxruntime.so'
'......' is the root directory of the repository.
Build onnxruntime for the required architecture if you're testing changes in the native code.
Alternatively, if you're testing the C# code you can extract the AAR from the nightly nuget Microsoft.ML.OnnxRuntime package.
- Get the nupkg from https://aiinfra.visualstudio.com/PublicPackages/_artifacts/feed/ORT-Nightly
- Unzip it, and the AAR is in
runtimes/android/native/onnxruntime.aar. - Unzip the AAR. The
jnidirectory contains a directory for each architecture with the libonnxruntime.so. - Copy the libonnxruntime.so for the required architectures to /build/Android//Release.
- e.g. x86_64 for running the emulator on an amd64 machine, and arm64-v8a for running on an arm64 Android device