This commit is contained in:
Jean-Philippe Bossuat
2023-09-28 00:09:07 +02:00
parent d29b156663
commit f1c418aba8

View File

@@ -397,10 +397,10 @@ func (mltp MaskedLinearTransformationProtocol) applyTransformAndScale(transform
// .Int truncates (i.e. does not round to the nearest integer)
// Thus we check if we are below, and if yes add 1, which acts as rounding to the nearest integer
if d == big.Below{
if d == big.Below {
inputScaleInt.Add(inputScaleInt, new(big.Int).SetInt64(1))
}
// Scales the mask by the ratio between the two scales
for i := range mask {
mask[i].Mul(mask[i], mltp.defaultScale)