-
Notifications
You must be signed in to change notification settings - Fork 6.8k
[v1.7.x] Backport some numpy features + fixes #18648
Conversation
Hey @sxjscience , Thanks for submitting the PR
CI supported jobs: [windows-gpu, centos-cpu, edge, windows-cpu, unix-gpu, miscellaneous, unix-cpu, website, clang, sanity, centos-gpu] Note: |
* FFI cumsum * Dispatch ufunc * Add PythonArg * Remove unused data type * Seperate op_utils and utils
* ffi_bincount percentile/quantile all/any * new ffi
Co-authored-by: Haozheng Fan <[email protected]>
* Support ADT as FFI return value * Special operator= for NDArrayHandle * SVD * Support cython * Clear * Add split * Refine * Fix ci * Fix typo * Clear * Resolve sanity issues Co-authored-by: Haozheng Fan <[email protected]>
* impl - FFI for np_may_share_memory * impl - FFI benchmark Co-authored-by: Ubuntu <[email protected]>
* resolution * fix sanity error * remove func 'is_integer'
* impl - FFI for np_indices * fix - use MXNetTypeWithBool2String Co-authored-by: Ubuntu <[email protected]>
* ffi_diag/diagonal/diag_indices_from * sanity && benchmark
* impl - FFI for np dstack * impl - benchmark np_einsum np_dstack * impl - FFI for np_unique * impl - benchmark np_unique Co-authored-by: Ubuntu <[email protected]>
* NumPy Laplace Distribution partly Frontend and Backend Signed-off-by: AntiZpvoh <[email protected]> * NumPy Laplace Distribution Backend style rectified Signed-off-by: AntiZpvoh <[email protected]> * NumPy Laplace Distribution Frontend modified Signed-off-by: AntiZpvoh <[email protected]> * Laplece op nightly test and normal op test correction Signed-off-by: AntiZpvoh <[email protected]> * NumPy Laplace Distribution unit test and code style Signed-off-by: AntiZpvoh <[email protected]> * Register uniform_n in CUDA Signed-off-by: AntiZpvoh <[email protected]> * Delete the registering of Laplace_n Signed-off-by: AntiZpvoh <[email protected]> * fix some alignment and indentation problems Signed-off-by: AntiZpvoh <[email protected]> * fix some sanity problems such as too long lines * fix some sanity problems again * laplace parmeters form change * implement basic laplace function * add frontend implement and ndarray loc case * complete the frontend * fix some sanity problems * fix some sanity problems * fix some typos * fix some problems * fix a typo * add size==() condition handling * fix some typos * remove unused code Co-authored-by: Ubuntu <[email protected]>
* fix - cpplint * impl - benchmark ffi for ops * rm - FFI for ops with param * fix - makefile * fix - not include unordered_map and use num_inputs * ci - compiler error * fix - change cholesky interface Co-authored-by: Ubuntu <[email protected]>
* fix - python interface * impl - ffi for matrix_rank * impl - ffi benchmark Co-authored-by: Ubuntu <[email protected]>
* [Numpy]Add kron * Implement the forward of Kron op * Implement the Backward of a * Implement the Backward of b * Fix 3rd party * Fix cpp sanity * Finish grad check * address comments: fix test_np_op and reduce req to req[0] * * Fix ndim = 0 * * Fix uninitialize bugs * * Impl FFI
* interp * fix_uninitialized_issue
* triu * rebase * fix ci * merge * triu new ffi * cpplint * cpplint * ffi benchmark * fix style * merge * fix conflict Co-authored-by: Ubuntu <[email protected]> Co-authored-by: Hao Jin <[email protected]>
…am (apache#17866) * add ffi for sum, var and std * add ffi wrapper for np.average * add ffi wrapper for np.histogram
* ffi_bitwise binary * retrigger ci
* change the header file of np.random.choice * add np_choice_op.cc file * add including header file * implement the basic function of random.choice * try to use take op in backend * try to use take op in backend * add take invoking function * fix some syntax problems * fix some problems * complete numpy.random.choice ffi * first commit of ffi indexing_op.cc * add random.choice ffi benchmark * complete take ffi * change the implementation of random.choice * add take op benchmark * complete clip op ffi and fix a problem * add clip op benchmark * fix some sanity problems * add space before ( and fix reimport * fix a typo * remove dead code and remove new operator Co-authored-by: Ubuntu <[email protected]>
Thanks @sxjscience for the effort. |
I think we should try to include as many numpy fixes as possible. The numpy feature was introduced in 1.6.0 and we should have a rather stable version in 1.7.0.
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: ciyong <[email protected]>
Sent: Wednesday, July 1, 2020 1:25:12 AM
To: apache/incubator-mxnet <[email protected]>
Cc: Xingjian SHI <[email protected]>; Mention <[email protected]>
Subject: Re: [apache/incubator-mxnet] [v1.7.x] Backport some numpy features + fixes (#18648)
Thanks @sxjscience<https://github.com/sxjscience> for the effort.
It seems that this backport introduce huge code changes which will be a big concern to the current stable code base especially after code freeze, then I'm more preferred NOT to include this at 1.7 release, what do you think? Copy @szha<https://github.com/szha> as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#18648 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABHQH3SZPF2V7KKMFANCJE3RZLXGRANCNFSM4ONBA5YQ>.
|
In addition, we do have the ability to test whether the numpy APIs are stable or not by checking the tests in GluonNLP: https://github.com/dmlc/gluon-nlp/tree/numpy/tests
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Xingjian SHI <[email protected]>
Sent: Wednesday, July 1, 2020 2:04:42 AM
To: apache/incubator-mxnet <[email protected]>; apache/incubator-mxnet <[email protected]>
Cc: Mention <[email protected]>
Subject: Re: [apache/incubator-mxnet] [v1.7.x] Backport some numpy features + fixes (#18648)
I think we should try to include as many numpy fixes as possible. The numpy feature was introduced in 1.6.0 and we should have a rather stable version in 1.7.0.
Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: ciyong <[email protected]>
Sent: Wednesday, July 1, 2020 1:25:12 AM
To: apache/incubator-mxnet <[email protected]>
Cc: Xingjian SHI <[email protected]>; Mention <[email protected]>
Subject: Re: [apache/incubator-mxnet] [v1.7.x] Backport some numpy features + fixes (#18648)
Thanks @sxjscience<https://github.com/sxjscience> for the effort.
It seems that this backport introduce huge code changes which will be a big concern to the current stable code base especially after code freeze, then I'm more preferred NOT to include this at 1.7 release, what do you think? Copy @szha<https://github.com/szha> as well.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#18648 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABHQH3SZPF2V7KKMFANCJE3RZLXGRANCNFSM4ONBA5YQ>.
|
As numpy operator feature is in a quite active development in current master branch and mainly targeting on 2.0 release. It'll be fine if the backport patch is small and controllable at this time frame, but given the current one is introducing substantial modifications (+16,079 −1,160 code changes in 192 files), which is really a big concern whether this patch can help to make it solid enough while not introducing any other numpy issue. I agree to include existing fixes as much as possible, but this one is kind of complicated and need further confirmation. What do you think @szha @sandeep-krishnamurthy ?
Thanks. |
First of all thank you very much @sxjscience for this tremendous effort in backporting PRs. I am really concerned with addition of new experimental features in the last minute. 1.7 was stable with many required functionality for users and no known breaking new changes compared to v1.6. I still believe all numpy related changes in these commits should go in a separate release and not block v1.7 as I believe this is not a stable feature set expected by users or advertised 2 months ago before code freeze as v1.7 feature. |
@sandeep-krishnamurthy @ciyongch I created this PR to track how many numpy commits would potentially go into v1.7.0 (not all of them should go into 1.7.0): We may
However, we should add all the bug fixes Apart from the following two commits
We will also need |
Thank you @sxjscience - Can you please help with back port of these 4 bug fix PRs? |
Thanks a lot @sxjscience for the great help to filter the necessary PRs targeting at 1.7 release and @sandeep-krishnamurthy for the valuable comments :) |
@sxjscience when will it be possible to have a Backport PRs? @ciyongch what is the timeline you had planned for rc0? |
Hi @sandeep-krishnamurthy , actually I was planning to drop rc0 before numpy related issues were raised. |
Close this PR now |
Sure, that one should be fine, how about the rest of two PRs? May I know how much effort and time you'll need to backport them? Thanks! |
@TaoLv helped to merge that PR, please help to check if the current code base works expected or not :) |
Description
(Brief description on what this PR is about)
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments