mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Modified the condition to load the optimiser model (#18891)
This commit is contained in:
parent
61610ff986
commit
0ea48fc73e
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ JNIEXPORT jlong JNICALL Java_ai_onnxruntime_OrtTrainingSession_createTrainingSes
|
|||
}
|
||||
}
|
||||
wchar_t* optimizerStr = NULL;
|
||||
if (optimizerPath == NULL) {
|
||||
if (optimizerPath != NULL) {
|
||||
optimizerStr = copyAndPad(jniEnv, optimizerPath);
|
||||
if (optimizerStr == NULL) {
|
||||
// exception has been thrown in Java, go to cleanup and return null.
|
||||
|
|
|
|||
Loading…
Reference in a new issue