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

Fix 1e7 in random.randint #129

Merged
merged 1 commit into from
May 17, 2024
Merged

Fix 1e7 in random.randint #129

merged 1 commit into from
May 17, 2024

Conversation

leng-yue
Copy link
Contributor

This PR fixed issue in Python 3.12, which randrange will throw an exception if the input is not an int.

The bug was originally reported in downstream repo fish-speech:

fishaudio/fish-speech#215 (comment)

@lucidrains
Copy link
Owner

oh nice! residual FSQ is being used 💯

@lucidrains lucidrains merged commit baef0c0 into lucidrains:master May 17, 2024
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