a1285d8f36
- update protobuf version being used by sentencepiece and the java tests - ignore unused language bindings from protobuf and triton - specify the CG config file with ignored directories where required Fix cgmanifest.json - 'git' entries require a commit hash not version - use 'other' for opencv third party code that is included directly in the opencv repo - the path isn't a valid repositoryUrl value to be provided as a 'git' entry - update version numbers/commit hashes to match the latest code Co-authored-by: Sayan Shaw <52221015+sayanshaw24@users.noreply.github.com> |
||
---|---|---|
.. | ||
gradle/wrapper | ||
src | ||
README.md | ||
build-android.gradle | ||
build.gradle | ||
gradle.properties | ||
gradlew | ||
gradlew.bat | ||
settings-android.gradle | ||
settings.gradle |
README.md
ONNXRuntime-Extensions Java/Android API and Package
This java and Android API and packaging principles were inspired by the https://github.com/microsoft/onnxruntime/tree/main/java, and openly share credits for API with the contributors in onnxruntime repo.
Building
Tools required
- install visual studio 2022 (with cmake, git, desktop C++)
- OpenJDK: https://docs.microsoft.com/en-us/java/openjdk/download (OpenJDK 11.0.15 LTS)
Build command
./build.sh -DOCOS_BUILD_JAVA=ON
and find onnxruntime-extensions-0.5.0.jar at out/$OS/$CMake_BUILD_TYPE/java/build/libs
Usage
There is a Java example project checked in tutorial folder, demo4j which provide a showcase how extensions package works with ONNXRuntime's Java API