Java comments

This commit is contained in:
Ryan Hill 2021-05-07 17:13:22 -07:00
parent 981af7d085
commit 6ad01b9040

View file

@ -98,8 +98,10 @@ final class OnnxRuntime {
}
Path tempDirectory = isAndroid() ? null : Files.createTempDirectory("onnxruntime-java");
try {
// Extract and prepare the shared provider libraries but don't try to load them, Onnxruntime itself will load them
load(tempDirectory, ONNXRUNTIME_LIBRARY_SHARED_NAME, false);
load(tempDirectory, ONNXRUNTIME_LIBRARY_CUDA_NAME, false);
load(tempDirectory, ONNXRUNTIME_LIBRARY_NAME, true);
load(tempDirectory, ONNXRUNTIME_JNI_LIBRARY_NAME, true);
ortApiHandle = initialiseAPIBase(ORT_API_VERSION_7);