-
Notifications
You must be signed in to change notification settings - Fork 146
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
refactor(integer): add compression key types #1431
Conversation
dcf3c11
to
73acc67
Compare
To merge after #1437 |
73acc67
to
cb3a793
Compare
cb3a793
to
1f55d61
Compare
1f55d61
to
2e6e49c
Compare
some GPU test crash related to the change at the moment it seems |
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.
Apart from the CI break, the code looks good to me.
Maybe we should add a client key with compression to the data tests because I am not sure that this is properly tested right now (the client key comes from 0.6 and does not have compression)
2e6e49c
to
bd2a680
Compare
can you check if there are test cases for compression in the data repo ? |
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.
Small things
radix_cks.new_cuda_compression_decompression_keys(&private_compression_key, &streams); | ||
radix_cks.new_cuda_compression_decompression_keys(&private_compression_key.0, &streams); |
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.
I would move the .0 in the cuda code and make sure this interface uses an integer key
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.
Done
tfhe/src/integer/compression_keys.rs
Outdated
|
||
#[derive(Clone, Debug, Serialize, Deserialize, Versionize)] | ||
#[versionize(CompressionPrivateKeysVersions)] | ||
pub struct CompressionPrivateKeys(pub crate::shortint::list_compression::CompressionPrivateKeys); |
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.
this is not consistent with other keys, they are struct with named fields, see e.g. tfhe/src/integer/server_key/mod.rs:36
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.
Replaced by a field named key
bd2a680
to
d5f09bc
Compare
No description provided.