mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-09 14:47:56 -05:00
fix: fix compression of trivial ciphertext
This commit is contained in:
@@ -59,7 +59,8 @@ impl CompressionKey {
|
||||
|
||||
for ct in ct_list {
|
||||
assert!(
|
||||
ct.noise_level() == NoiseLevel::NOMINAL,
|
||||
ct.noise_level() == NoiseLevel::NOMINAL
|
||||
|| ct.noise_level() == NoiseLevel::ZERO,
|
||||
"Ciphertexts must have a nominal (post PBS) noise to be compressed"
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user