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 2017/12/19 13:31:02 UTC
[GitHub] asmushetzel commented on issue #9119: fix random generator: do not gen seed each time
asmushetzel commented on issue #9119: fix random generator: do not gen seed each time
URL: https://github.com/apache/incubator-mxnet/pull/9119#issuecomment-352749263
Nice catch and implementation. I was thinking about the same pattern (using a sufficiently large pool of pre-allocated random generators) as well in the initial implementation, but wasn't sure about blocking that much memory for the entire runtime. But in fact, it is the far better solution, not only in terms of sampling accuracy.
Left some more comments in the code.
One thing that should be added are unit tests to test_random.py that also verify "chi square" . We need to add the test that exhibited the problem with the prior implementation and ensures that from now on we never degrade again.
----------------------------------------------------------------
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