-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Features/1448 Refactor random module #1508
Conversation
commented out check for size < 2*maxint32
@ClaudiaComito @JuanPedroGHM @mtar @Markus-Goetz What do you think about the alternative approach to generate random arrays shown here for randn and rand? Does it do the job or are there any objections? |
(The error in the other random functions is due to the fact that the way of setting the seed in my new implementation interferes with setting the seed in the other functionality. This would have to be removed if we want to keep the new idea.) |
still to be done: figure out influence of proposed changes on other functions |
Thank you for the PR! |
1 similar comment
Thank you for the PR! |
Thank you for the PR! |
1 similar comment
Thank you for the PR! |
…tead of default 1e-8) as otherwise the test fails
Thank you for the PR! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1508 +/- ##
==========================================
+ Coverage 92.00% 92.04% +0.04%
==========================================
Files 83 83
Lines 12072 12109 +37
==========================================
+ Hits 11107 11146 +39
+ Misses 965 963 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Thank you for the PR! |
Thank you for the PR! |
Thank you for the PR! |
Thank you for the PR! |
few lines missing coverage |
Thank you for the PR! |
something strange happened with the codecov |
Thank you for the PR! |
@mtar now we have 100% coverage of patch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR! |
@mtar now it workes? |
@mtar thanks for reviewing 👍 |
Due Diligence
Description
Issue/s resolved: #1448
Changes proposed:
Type of change
should not break existing applications as far as they do not rely on strong reproducibility ensured by Threefry but not batchparallel RNG
Performance
likely to improve performance of random number generation compared to existing solution
Does this change modify the behaviour of other functions? If so, which?
yes, everything related to or using randomness in Heat