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

The value of self.cascade becomes 0 when bound <= 0.5, causing errors #178

Open
ShenhanQian opened this issue Aug 21, 2023 · 0 comments
Open

Comments

@ShenhanQian
Copy link

A remedy could be modifying

self.cascade = 1 + math.ceil(math.log2(bound))

to

self.cascade = max(1 + math.ceil(math.log2(bound)), 1)
@ShenhanQian ShenhanQian changed the title The value of cascade becomes 0 when bound <= 0.5, causing errors The value of self.cascade becomes 0 when bound <= 0.5, causing errors Aug 21, 2023
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

No branches or pull requests

1 participant