Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Speed up SequenceReverse #14627

Merged
merged 2 commits into from
Apr 29, 2019
Merged

Speed up SequenceReverse #14627

merged 2 commits into from
Apr 29, 2019

Conversation

ptrendx
Copy link
Member

@ptrendx ptrendx commented Apr 5, 2019

Description

This PR makes the SequenceReverse operator use more parallelism in its execution, resulting in significant speedup.

I tested it on the GNMT en-vi example from GluonNLP (https://gluon-nlp.mxnet.io/model_zoo/machine_translation/index.html#google-neural-machine-translation) where it resulted in end to end speed increase from 33k wps to 44-45k wps on a single V100.

FYI @eric-haibin-lin @szha @fhieber @sbodenstein

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

@piyushghai
Copy link
Contributor

Thanks for your contributions @ptrendx.

@mxnet-label-bot Add [Operator, pr-awaiting-review]

@marcoabreu marcoabreu added Operator pr-awaiting-review PR is waiting for code review labels Apr 5, 2019
Copy link
Member

@eric-haibin-lin eric-haibin-lin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some flaky tests are disabled in the master branch. Would you mind rebasing/merging with master?

src/operator/sequence_reverse-inl.h Outdated Show resolved Hide resolved
@ptrendx
Copy link
Member Author

ptrendx commented Apr 9, 2019

@eric-haibin-lin Seems that there are still some problems with R and test_random on Windows.

@zachgk zachgk mentioned this pull request Apr 9, 2019
@eric-haibin-lin
Copy link
Member

Thanks for updating the code. There were some flaky tests, could you sync with mxnet master?

@roywei
Copy link
Member

roywei commented Apr 29, 2019

@eric-haibin-lin , could you review again, CI passed now. thanks!

@szha szha merged commit 64287dd into apache:master Apr 29, 2019
access2rohit pushed a commit to access2rohit/incubator-mxnet that referenced this pull request May 14, 2019
haohuanw pushed a commit to haohuanw/incubator-mxnet that referenced this pull request Jun 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Operator pr-awaiting-review PR is waiting for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants