Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

[MXNET-600][Scala] NDArray auto-collector #11751

Merged
merged 10 commits into from
Jul 19, 2018
Prev Previous commit
Next Next commit
fix jni NDArray signature
  • Loading branch information
yzhliu committed Jul 13, 2018
commit 72cf085e4b78c9be4087f983b7ed7788e628da13
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ extern "C" void KVStoreUpdaterCallbackFunc

// find java NDArray constructor
jclass ndObjClass = env->FindClass("org/apache/mxnet/NDArray");
jmethodID ndObjConstructor = env->GetMethodID(ndObjClass, "<init>", "(JZ)V");
jmethodID ndObjConstructor = env->GetMethodID(ndObjClass, "<init>", "(JZZ)V");

jobject ndRecv = env->NewObject(ndObjClass, ndObjConstructor,
reinterpret_cast<jlong>(recv), true);
Expand Down