-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NNVM] Move FTVMCompute registration of the elementwise operator to c++ #1351
Conversation
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.
Do you think we should use out->dtype instead of Float(32) for fill_value ?
@srkreddy1238 Thank you for your suggestion. Yes, it looks good better of it. Would you review again? |
@nishi-t Thanks. |
@srkreddy1238 Thanks! I agreed and fixed it. |
"FTVMCompute", [](const NodeAttrs& attrs, | ||
const Array<Tensor>& inputs, | ||
const Array<Tensor>& out_info) { | ||
const ElementWiseReduceParam& param = nnvm::get<ElementWiseReduceParam>(attrs.parsed); |
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.
@tqchen
We dropped num_args in topi. Do we need here ?
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.
Yes, I think that num_args cannot be dropped from elemwise_sum in nnvm. Because, num_args is used in here.
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.
Thanks. LGTM.
This PR move following operator's registration to c++
Please review.