You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This is an **experimental** Java binding to Microsoft's [ONNX Runtime](https://g
8
8
9
9
This uses Java's Panama project. Given the incubating status of that project, this library should be considered a proof of concept and lacks the stability guarantees at this time. The minimum supported Java version is 17.
10
10
11
-
This project's goals are to provide a type-safe, performant binding which abstracts lot of the native and C API intricacies and is loosely coupled to the upstream project.
11
+
This project's goals are to provide a type-safe, performant binding which abstracts a lot of the native and C API intricacies and is loosely coupled to the upstream project.
12
12
13
13
## Usage
14
14
@@ -17,9 +17,9 @@ This project's goals are to provide a type-safe, performant binding which abstra
17
17
18
18
This project is released to [Maven Central](https://search.maven.org/artifact/com.jyuzawa/onnxruntime) and can be used in your project. There are a few artifacts published:
19
19
20
-
*`onnxruntime` - The binding with no native libraries. For use as a compile dependency.
21
-
*`onnxruntime-cpu` - A collection of native libraries with CPU support for a several common OS/architecture combinations. For use as an optional runtime dependency.
22
-
*`onnxruntime-gpu` - A collection of native libraries with GPU support for a several common OS/architecture combinations. For use as an optional runtime dependency.
20
+
*[`onnxruntime`](https://search.maven.org/artifact/com.jyuzawa/onnxruntime) - The binding with no native libraries. For use as a compile dependency.
21
+
*[`onnxruntime-cpu`](https://search.maven.org/artifact/com.jyuzawa/onnxruntime-cpu) - A collection of native libraries with CPU support for a several common OS/architecture combinations. For use as an optional runtime dependency.
22
+
*[`onnxruntime-gpu`](https://search.maven.org/artifact/com.jyuzawa/onnxruntime-gpu) - A collection of native libraries with GPU support for a several common OS/architecture combinations. For use as an optional runtime dependency.
23
23
24
24
The native library (from Microsoft) will need to be provided at runtime using one of the latter two artifacts. Alternative, the Java library path (`java.library.path`) will be used if neither of those artifacts is provided.
25
25
@@ -45,5 +45,5 @@ The example application can be ran:
45
45
46
46
#### JVM Arguments
47
47
48
-
Since this uses a native library, this will require the runtime to have the `--enable-native-access=ALL-UNNAMED` JVM option.
48
+
Since this uses a native library, this will require the runtime to have the `--enable-native-access` JVM option, likely `--enable-native-access=ALL-UNNAMED`.
49
49
If you are not using modules, you will need to also use `--add-modules jdk.incubator.foreign` as well.
0 commit comments