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

Add weighted sampler #732

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Add weighted sampler #732

merged 2 commits into from
Jan 15, 2024

Conversation

HollowPrincess
Copy link
Contributor

@HollowPrincess HollowPrincess commented Dec 26, 2023

This PR fixes the non-obvious bug when using OrSampler: the multiplication changes the sampler weight inplace which in some cases can be crucial.

e.g. other_sampler = (1 & sampler_1)| (0 & sampler_2) will change sampler_1 and sampler_2 weights

@SergeyTsimfer SergeyTsimfer merged commit 78ca0b0 into master Jan 15, 2024
37 checks passed
@SergeyTsimfer SergeyTsimfer deleted the weighted_sampler branch January 15, 2024 10:08
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.

3 participants