-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Optimize C++ API #13496
Optimize C++ API #13496
Conversation
Pass parameter with reference instead of value. Add const as well as it is not changed.
@mxnet-label-bot add [C++, pr-awaiting-review] @leleamol for review |
Fix BinaryShapeFunction typedef Add a right brace for SmoothL1Shape_
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.
@leleamol
any idea why centos-cpu still not done? |
@marcoabreu May I ask why the centos-cpu still not done? |
Seems like it hasn't been kicked off. Please rebase to start another build |
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
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
do I need to do anything? |
@marcoabreu are we missing statuses from github? Check centos-cpu |
@zhaoyao73 I have kicked off a build on your behalf. Sorry for the inconveniences. |
@marcoabreu just a dummy question, can I start a CI build? |
Yeah, just make a new commit and it will automatically start a build |
@mxnet-label-bot [pr-awaiting-merge] |
weird, look at this PR it is still pr-awaiting-review, although I see @larrroy put the pr-awaiting-merge? |
You received two binding approvals, no requested changes and there are no outstanding discussions, thus the PR is ready to be merged. |
Pass parameter with reference instead of value.
Add const as well as it is not changed.
Description
Optimize some functions to pass reference instead of value. This could avoid unnecessary construction/destruction and copy.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Didn't find the API doc in mxnet.io/doxygen
Changes
Comments
I am not sure I could run a sanity test with it or how to run a unit test/sanity test against the change. But pass value -> pass reference, should be transparent to C++, although not like C's pass value->pass pointer.