You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.
This code base has been donated to the Apache MXNet project per #373, and repo is deprecated. Future development and issue tracking should continue in Apache MXNet.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
According to docs,
Random<>::SampleUniform(&dst, a, b)
should generate random samples uniformly distributed in[a, b)
.However, when
DType = float
,std::uniform_real_distribution
, which is used internally inSampleUniform
for CPU, might accidentally returnb
. This is an issue in most stdlib implementations. See LWG#2524, GCC#63176, LLVM#18767.On GPU,
curandGenerateUniform()
is used, but it actually produces samples in(0, 1]
according its documentation:which results in
(a, b]
forSampleUniform()
. The same issue affectsdouble
version as well.The text was updated successfully, but these errors were encountered: