This repository was archived by the owner on Nov 17, 2023. It is now read-only.
Merged
Conversation
haojin2
reviewed
Aug 15, 2019
haojin2
reviewed
Aug 15, 2019
| np_out = np.nonzero(x.asnumpy()) | ||
| np_out = np.transpose(np_out) | ||
| assert_almost_equal(mx_out.asnumpy(), np_out, rtol, atol) | ||
|
|
haojin2
reviewed
Aug 15, 2019
fcca31c to
97cb5d6
Compare
97cb5d6 to
236ddcf
Compare
haojin2
reviewed
Sep 12, 2019
haojin2
reviewed
Sep 12, 2019
haojin2
reviewed
Sep 12, 2019
| (1, 1), | ||
| (1, 2, 3), | ||
| (1, 0), | ||
| (2, 0, 3) |
haojin2
reviewed
Sep 12, 2019
| for hybridize in [True, False]: | ||
| for shape in [(), | ||
| (1,), | ||
| (1, 1), |
Contributor
There was a problem hiding this comment.
Get rid of this shape and the shape above.
aded5c8 to
c33b8b0
Compare
haojin2
approved these changes
Sep 16, 2019
Contributor
haojin2
left a comment
There was a problem hiding this comment.
LGTM after rebase and resolution of conflicts
d10c07e to
eb41507
Compare
* add cpu test and handle 0-dim * add FGradient with MakeZeroGradNodes * handle 0-dim and 0-shape and add test on gpu * add doc * fix bug in review * do not use thrust::inclusive_scan on cpu * fix format error * edit test and remove gpu test The output is same as numpy.transpose(numpy.nonzero(x)) * fix error of review * edit test
eb41507 to
d49dc5b
Compare
5 tasks
reminisce
pushed a commit
that referenced
this pull request
Sep 23, 2019
* add cpu test and handle 0-dim * add FGradient with MakeZeroGradNodes * handle 0-dim and 0-shape and add test on gpu * add doc * fix bug in review * do not use thrust::inclusive_scan on cpu * fix format error * edit test and remove gpu test The output is same as numpy.transpose(numpy.nonzero(x)) * fix error of review * edit test
drivanov
pushed a commit
to drivanov/incubator-mxnet
that referenced
this pull request
Sep 26, 2019
* add cpu test and handle 0-dim * add FGradient with MakeZeroGradNodes * handle 0-dim and 0-shape and add test on gpu * add doc * fix bug in review * do not use thrust::inclusive_scan on cpu * fix format error * edit test and remove gpu test The output is same as numpy.transpose(numpy.nonzero(x)) * fix error of review * edit test
larroy
pushed a commit
to larroy/mxnet
that referenced
this pull request
Sep 28, 2019
* add cpu test and handle 0-dim * add FGradient with MakeZeroGradNodes * handle 0-dim and 0-shape and add test on gpu * add doc * fix bug in review * do not use thrust::inclusive_scan on cpu * fix format error * edit test and remove gpu test The output is same as numpy.transpose(numpy.nonzero(x)) * fix error of review * edit test
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
numpy operator nonzero