-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
7987e73
to
b814ae1
Compare
Is there a check list of what to change for int64 support in general? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@apeforest
Moreover, I have seen
32bit API has both examples uint32_t and int
MXNDArrayCreateEx
https://github.com/apache/incubator-mxnet/blob/6f95702613dd95aa4a1b467b938d79c4d13bee96/include/mxnet/c_api.h#L599
MXNDArrayReshape
https://github.com/apache/incubator-mxnet/blob/6f95702613dd95aa4a1b467b938d79c4d13bee96/include/mxnet/c_api.h#L845
Should I update them so that ndims for 32bit API are consistent?
@eric-haibin-lin while I don't think there is uniform guideline for int64 support across all ops. But in most cases, switching the datatype of all the variables holding "indices" from 32bit dtype to 64bit dtype solves the issue. One still has to test that to ensure it doesn't break the functionality and supports int64. @apeforest @access2rohit any inputs? |
Plus ensure that the C API being used supports int64_t for indices as well. On language binding side int64_t values need to be passed to C++ backend. For e.g. ctype.int64 should be used for passing large values else they will get truncated at the language binding interface itself. |
0481f3a
to
3bca81e
Compare
Adding @reminisce to review the C API change for numpy operator. |
be5e9ce
to
ee5b5ab
Compare
One last comment. Otherwise looks good to me. Thanks! |
Does https://cwiki.apache.org/confluence/display/MXNET/Large+Tensor+Support correctly document the current practice/changes? |
Yes. It enlists the 3 steps needed to extend LTS for operators (includes changes on Front-end language binding side and Back-end C++ api side). I updated the wiki. Please verify. @eric-haibin-lin |
ee5b5ab
to
646a0f0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@mxnet-label-bot add [pr-awaiting-merge] |
Description
Adds support to Sparse tensor creation
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Test