-
Notifications
You must be signed in to change notification settings - Fork 143
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
shortint/small optim #536
shortint/small optim #536
Conversation
mayeul-zama
commented
Sep 11, 2023
- cleanup inputs of smart ops instead of cleanup clones
- do not bootstrap when not necessary
- add asserts on smart ops
@slab-ci cpu_fast_test |
57ab09d
to
3f13028
Compare
168374f
to
f116b83
Compare
@slab-ci cpu_fast_test |
3f13028
to
e1e5822
Compare
f116b83
to
4cf5b56
Compare
@slab-ci cpu_fast_test |
Codecov Report
@@ Coverage Diff @@
## main #536 +/- ##
==========================================
- Coverage 23.11% 22.93% -0.19%
==========================================
Files 256 256
Lines 19573 19633 +60
==========================================
- Hits 4525 4503 -22
- Misses 15048 15130 +82
|
4cf5b56
to
7316e86
Compare
@slab-ci cpu_fast_test |
7316e86
to
79eeb0d
Compare
@slab-ci cpu_fast_test |
@slab-ci cpu_fast_test |
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.
Not sure about the pattern where we check if the operation is possible, clean the ciphertexts and then assert right after 🤔
@@ -176,15 +172,14 @@ impl ServerKey { | |||
if !self.is_crt_scalar_mul_possible(ctxt, scalar) { | |||
self.full_extract_message_assign(ctxt); | |||
} | |||
|
|||
// assert!(self.is_crt_scalar_mul_possible(ctxt, scalar)); |
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.
what is breaking this ?
@@ -255,6 +255,7 @@ impl ServerKey { | |||
if !self.is_small_scalar_mul_possible(ctxt, scalar) { | |||
self.full_propagate(ctxt); | |||
} | |||
// assert!(self.is_small_scalar_mul_possible(ctxt, scalar)); |
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.
same question everywhere, why is it commented here and in this case even more so given it's not commented below
79eeb0d
to
5293645
Compare
@slab-ci cpu_fast_test |
@slab-ci cpu_fast_test |
5293645
to
79f5c50
Compare
@slab-ci cpu_fast_test |
Pull Request has been approved 🎉 |
that one https://github.com/zama-ai/tfhe-rs/actions/runs/6275470013/job/17043013270#step:8:3202 is a hard coded test that can be updated safely and was a sanity check with the previous accpeted degree value (though we knew it was broken, and needed updating later) |
c98514d
to
b0e5dbe
Compare
@slab-ci cpu_fast_test |
Pull Request has been approved 🎉 |
@slab-ci csprng_randomness_testing |
b0e5dbe
to
aa7b393
Compare
@slab-ci cpu_fast_test |
Moved add assert commit to PR #590 |
Pull Request has been approved 🎉 |