This is an automated email from the ASF dual-hosted git repository.
alexzai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new dab4ffc replace std::random_shuffle to std::shuffle (#14523)
dab4ffc is described below
commit dab4ffcd2adb81db4a639c8db7e43c74165b296f
Author: Yuta Hinokuma <[email protected]>
AuthorDate: Sun Apr 7 03:15:36 2019 +0900
replace std::random_shuffle to std::shuffle (#14523)
---
src/io/image_aug_default.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/io/image_aug_default.cc b/src/io/image_aug_default.cc
index 01c0a7a..b090d04 100644
--- a/src/io/image_aug_default.cc
+++ b/src/io/image_aug_default.cc
@@ -462,7 +462,7 @@ class DefaultImageAugmenter : public ImageAugmenter {
float alpha_s = 1.0 +
std::uniform_real_distribution<float>(-param_.saturation,
param_.saturation)(*prnd);
int rand_order[3] = {0, 1, 2};
- std::random_shuffle(std::begin(rand_order), std::end(rand_order));
+ std::shuffle(std::begin(rand_order), std::end(rand_order), *prnd);
for (int i : rand_order) {
if (i == 0) {
// brightness