This repository was archived by the owner on Nov 17, 2023. It is now read-only.
[Numpy] ffi invocation: expand_dims, tril, diff, broadcast_to#17738
Merged
haojin2 merged 1 commit intoapache:masterfrom Mar 9, 2020
Merged
[Numpy] ffi invocation: expand_dims, tril, diff, broadcast_to#17738haojin2 merged 1 commit intoapache:masterfrom
haojin2 merged 1 commit intoapache:masterfrom
Conversation
02331f4 to
be46128
Compare
haojin2
reviewed
Mar 2, 2020
hzfan
reviewed
Mar 3, 2020
hzfan
reviewed
Mar 3, 2020
be46128 to
c7a6659
Compare
c7a6659 to
68593a1
Compare
hzfan
reviewed
Mar 7, 2020
|
|
||
| int num_outputs = 0; | ||
| NDArray* inputs[] = {args[0].operator mxnet::NDArray*()}; | ||
| auto ndoutputs = Invoke(op, &attrs, 1, inputs, &num_outputs, nullptr); |
Contributor
There was a problem hiding this comment.
The 1 seems like a magic number. Better to use int num_inputs = 1 and call Invoke with num_inputs. Same for 3 other operators.
MoisesHer
pushed a commit
to MoisesHer/incubator-mxnet
that referenced
this pull request
Apr 10, 2020
anirudh2290
pushed a commit
to anirudh2290/mxnet
that referenced
this pull request
May 29, 2020
sxjscience
pushed a commit
to sxjscience/mxnet
that referenced
this pull request
Jul 1, 2020
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.
Description
as title