Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tic
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenyuanbo
tic
Commits
60b874e2
Commit
60b874e2
authored
Jun 30, 2018
by
Dayananda V
Committed by
Tianqi Chen
Jun 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
JNI Crash fix (#1357)
parent
32a55f88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
jvm/native/src/main/native/ml_dmlc_tvm_native_c_api.cc
+1
-1
No files found.
jvm/native/src/main/native/ml_dmlc_tvm_native_c_api.cc
View file @
60b874e2
...
@@ -384,7 +384,7 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_tvm_LibInfo_tvmArrayGetShape(
...
@@ -384,7 +384,7 @@ JNIEXPORT jint JNICALL Java_ml_dmlc_tvm_LibInfo_tvmArrayGetShape(
jmethodID
arrayAppend
=
env
->
GetMethodID
(
arrayClass
,
"add"
,
"(Ljava/lang/Object;)Z"
);
jmethodID
arrayAppend
=
env
->
GetMethodID
(
arrayClass
,
"add"
,
"(Ljava/lang/Object;)Z"
);
for
(
int
i
=
0
;
i
<
ndim
;
++
i
)
{
for
(
int
i
=
0
;
i
<
ndim
;
++
i
)
{
jobject
data
=
env
->
NewObject
(
longClass
,
newLong
,
static_cast
<
jlong
>
(
shape
[
i
]));
jobject
data
=
env
->
NewObject
(
longClass
,
newLong
,
static_cast
<
jlong
>
(
shape
[
i
]));
env
->
Call
Object
Method
(
jshape
,
arrayAppend
,
data
);
env
->
Call
Boolean
Method
(
jshape
,
arrayAppend
,
data
);
env
->
DeleteLocalRef
(
data
);
env
->
DeleteLocalRef
(
data
);
}
}
env
->
DeleteLocalRef
(
longClass
);
env
->
DeleteLocalRef
(
longClass
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment