diff --git a/src/io/jni/paddle_mobile_jni.cpp b/src/io/jni/paddle_mobile_jni.cpp index 56d522b1560d2c4cbeab04eeceaa598543273806..93b14f01e3b1c8f70a573471f53ad80cdfc25746 100644 --- a/src/io/jni/paddle_mobile_jni.cpp +++ b/src/io/jni/paddle_mobile_jni.cpp @@ -405,9 +405,9 @@ Java_com_baidu_paddle_PML_predictLod(JNIEnv *env, jclass thiz, jlongArray buf) { ANDROIDLOGE("predict nlp size %d", count); result = env->NewLongArray(count); - env->SetLongArrayRegion(result, 0, count, vec_result->data()); + env->ReleaseLongArrayElements(buf, ddim_ptr, 0); return result; }