Skip to content

Fix 'ceil' is not defined #195

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

Merged
merged 1 commit into from
Feb 25, 2025
Merged

Fix 'ceil' is not defined #195

merged 1 commit into from
Feb 25, 2025

Conversation

dofuuz
Copy link
Contributor

@dofuuz dofuuz commented Feb 20, 2025

When using ResidualFSQ, this error occurs:

  File "(path removed)/lib/python3.12/site-packages/vector_quantize_pytorch/residual_fsq.py", line 32, in round_up_multiple
    return ceil(num / mult) * mult
           ^^^^
NameError: name 'ceil' is not defined

@lucidrains
Copy link
Owner

@dofuuz hey thanks!

@lucidrains lucidrains merged commit 476a50d into lucidrains:master Feb 25, 2025
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