mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-07 22:04:10 -05:00
chore: impl Versionize for NormalizedHammingWeightBound
This commit is contained in:
committed by
tmontaigu
parent
329677bd26
commit
4f14343668
@@ -187,3 +187,8 @@ pub enum NoiseEstimationMeasureBoundVersions {
|
||||
pub enum ChunkSizeVersions {
|
||||
V0(ChunkSize),
|
||||
}
|
||||
|
||||
#[derive(VersionsDispatch)]
|
||||
pub enum NormalizedHammingWeightBoundVersions {
|
||||
V0(NormalizedHammingWeightBound),
|
||||
}
|
||||
|
||||
@@ -413,7 +413,8 @@ pub struct NoiseEstimationMeasureBound(pub f64);
|
||||
pub struct ChunkSize(pub usize);
|
||||
|
||||
/// The max normalized hamming weight
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Serialize, Deserialize, Versionize)]
|
||||
#[versionize(NormalizedHammingWeightBoundVersions)]
|
||||
pub struct NormalizedHammingWeightBound(f64);
|
||||
|
||||
impl NormalizedHammingWeightBound {
|
||||
|
||||
Reference in New Issue
Block a user