Leave temp file around to load properly

This commit is contained in:
Ryan Hill 2021-05-07 01:08:45 -07:00
parent 24eed8bd8f
commit 9dfdafe6e0

View file

@ -213,7 +213,7 @@ final class OnnxRuntime {
logger.log(Level.FINE, "Loaded native library '" + library + "' from resource path");
}
} finally {
cleanUp(tempFile);
if (system_load) cleanUp(tempFile);
}
}