-
Notifications
You must be signed in to change notification settings - Fork 157
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
Am/refactor/factorize expansion code #1870
base: main
Are you sure you want to change the base?
Conversation
Yes maybe this could use the Expandable trait ? |
This was not the goal of the PR, I let you do that on top/after if you want to |
7d9ea48
to
6eb8cb0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Not sure if some parts needs a closer look
6eb8cb0
to
7216706
Compare
just rebased to avoid the branch getting out of sync |
I need some time to go over this change again and see if it's better this way (is certainly less error prone when a change needs to be applied for all lists) |
closes: https://github.com/zama-ai/tfhe-rs-internal/issues/787
Adds sanitization for all expansion code paths
Factorize in a single function to avoid issues later, managed to make it work without it being too weird @nsarlin-zama
Maybe traits would be better, this works, I let you tweak if needed