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

Changed frac_per_sample_entropy to take up less memory #176

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

EmmettBicker
Copy link
Contributor

@EmmettBicker EmmettBicker commented Nov 28, 2024

Hi! I was using your LFQ implementation when I realized that the implementation of the frac_per_sample_entropy term was taking up more memory than necessary to compute the calculations. I adjusted the implementation and I also added a file in tests/ named 'test_lfq.py' to validate my implementation.

I'd love to contribute to this project and please let me know if you'd like me to change anything in my update.

@lucidrains
Copy link
Owner

this looks good! thank you Emmett 🙏

@lucidrains lucidrains merged commit b48946f into lucidrains:master Nov 28, 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