Skip to content
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

Use copy instead of deepcopy for RNGs #147

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Use copy instead of deepcopy for RNGs #147

merged 1 commit into from
Oct 4, 2024

Conversation

devmotion
Copy link
Member

My take-away from JuliaLang/julia#42899 is that we should use copy instead of deepcopy for RNGs. More generally, based on JuliaLang/julia#42899 (comment) we might also want to use copy for models and samplers (possibly requires defining copy in a few downstream packages).

@sunxd3
Copy link
Member

sunxd3 commented Oct 4, 2024

interesting, thanks David

@devmotion devmotion merged commit fc8cfa6 into master Oct 4, 2024
28 checks passed
@devmotion devmotion deleted the dw/deepcopy branch October 4, 2024 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants