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

[FIX] replace shuffle method #14523

Merged
merged 1 commit into from
Apr 6, 2019

Conversation

higumachan
Copy link
Contributor

@higumachan higumachan commented Mar 26, 2019

Description

I replaced shuffle method std::random_shuffle to std::shuffle because It can not build with c++17.

Checklist

Essentials

Please feel free to remove inapplicable items for your PR.

  • The PR title starts with [MXNET-$JIRA_ID], where $JIRA_ID refers to the relevant JIRA issue created (except PRs with tiny changes)
  • Changes are complete (i.e. I finished coding on this PR)
  • All changes have test coverage:
  • Unit tests are added for small changes to verify correctness (e.g. adding a new operator)
  • Nightly tests are added for complicated/long-running ones (e.g. changing distributed kvstore)
  • Build tests will be added for build configuration changes (e.g. adding a new build option with NCCL)
  • Code is well-documented:
  • For user-facing API changes, API doc string has been updated.
  • For new C++ functions in header files, their functionalities and arguments are documented.
  • For new examples, README.md is added to explain the what the example does, the source of the dataset, expected performance on test set and reference to the original paper if applicable
  • Check the API doc at http:https://mxnet-ci-doc.s3-accelerate.dualstack.amazonaws.com/PR-$PR_ID/$BUILD_ID/index.html
  • To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change

Changes

  • Feature1, tests, (and when applicable, API doc)
  • Feature2, tests, (and when applicable, API doc)

Comments

  • If this change is a backward incompatible change, why must this change be made.
  • Interesting edge cases to note here

@abhinavs95
Copy link
Contributor

abhinavs95 commented Mar 26, 2019

@mxnet-label-bot update [Bug, pr-awaiting-merge]

@marcoabreu marcoabreu added Bug pr-awaiting-review PR is waiting for code review labels Mar 26, 2019
Copy link
Member

@wkcn wkcn left a comment

Choose a reason for hiding this comment

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

LGTM. Thank you for the fix!

@marcoabreu marcoabreu added pr-awaiting-merge Review and CI is complete. Ready to Merge and removed pr-awaiting-review PR is waiting for code review labels Mar 27, 2019
@TaoLv
Copy link
Member

TaoLv commented Mar 27, 2019

@higumachan Thank you for the fix. Have you ever measured the performance change between these two shuffle methods?

@wkcn
Copy link
Member

wkcn commented Apr 1, 2019

I think there is a little difference on the performance between std::shuffle and std::random_shuffle, and the difference can be ignored.

Related information:
https://meetingcpp.com/blog/items/stdrandom_shuffle-is-deprecated.html

@higumachan
Copy link
Contributor Author

@wkcn
I think too.
Thank you.

@azai91
Copy link
Contributor

azai91 commented Apr 6, 2019

thanks for the fix.

@azai91 azai91 merged commit dab4ffc into apache:master Apr 6, 2019
@higumachan higumachan deleted the fix/replace_shuffle_method branch April 16, 2019 10:38
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
Bug pr-awaiting-merge Review and CI is complete. Ready to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants