You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/11/15 08:41:00 UTC
[GitHub] mseth10 commented on a change in pull request #13276: enabling
test_dropout after fixing flaky issue
mseth10 commented on a change in pull request #13276: enabling test_dropout after fixing flaky issue
URL: https://github.com/apache/incubator-mxnet/pull/13276#discussion_r233751750
##########
File path: src/operator/nn/dropout-inl.h
##########
@@ -92,7 +92,7 @@ class DropoutOp {
const int my_amount = std::min(my_offset + avg_amount, n) - my_offset;
if (my_amount > 0) {
VSLStreamStatePtr stream;
- vslNewStream(&stream, VSL_BRNG_MCG31, seed + my_offset);
+ vslNewStream(&stream, VSL_BRNG_MCG31, seed);
Review comment:
@pengzhao-intel vslNewStream was passed (seed + my_offset) which is variable for different threads as my_offset depends on thread number. I have removed my_offset, so whatever seed value is generated, it's used to generate stream for each thread.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services