Skip to content

Fix: Corrected embed initialization in EuclideanCodebook forward pass #219

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
Jul 21, 2025

Conversation

xiaoxiao0406
Copy link
Contributor

The original code had an issue where the embed variable was not initialized within the if self.affine_param: block before its first use, which could lead to an error.

This change ensures embed is properly defined before the affine transformation is applied.

@lucidrains
Copy link
Owner

lucidrains commented Jul 21, 2025

thank you Yating! could you throw in a test?

@lucidrains
Copy link
Owner

@xiaoxiao0406 actually that's ok, merging, thanks!

@lucidrains lucidrains merged commit e85146c into lucidrains:master Jul 21, 2025
1 check passed
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