zhanghang1989 closed pull request #10027: Fix bug/typo for Dropout using axes URL: https://github.com/apache/incubator-mxnet/pull/10027
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/dmlc-core b/dmlc-core index 282b98663f5..a1fd6834c0c 160000 --- a/dmlc-core +++ b/dmlc-core @@ -1 +1 @@ -Subproject commit 282b98663f59df6b26f906580af610dea3046f22 +Subproject commit a1fd6834c0cd3fd2cc586deec2dc24194924cada diff --git a/src/operator/nn/dropout-inl.h b/src/operator/nn/dropout-inl.h index b57ab45891e..1af4798d1ce 100644 --- a/src/operator/nn/dropout-inl.h +++ b/src/operator/nn/dropout-inl.h @@ -259,7 +259,7 @@ class DropoutOp { return; } // initialize the mask - LaunchRNG<BernoulliKernel, xpu>(s, pgen, out.Size(), + LaunchRNG<BernoulliKernel, xpu>(s, pgen, mask.Size(), mask.dptr<DType>(), this->pkeep_); // broadcast mul ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services