You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description:
I encountered a ValueError while using the Pyfhel library in the evaluate_polynomial function. The error specifically points to a parameter mismatch between encrypted_ntt and plain_ntt. The issue arises when attempting to perform certain operations within the function. Code Issue:
/encry_minimaxcompa.py:63: UserWarning: Cannot align scales 0 and 30 (available rescalings: [])
monomial = monomial * coeff
Traceback (most recent call last):
File encry_minimaxcompa.py", line 108, in
c_result = MinimaxComp(encrypted_a, encrypted_b, alpha, epsilon, depth, margin, HE)
File "encry_minimaxcompa.py", line 20, in MinimaxComp
result = evaluate_polynomial(p, c_x, HE)
File "//encry_minimaxcompa.py", line 63, in evaluate_polynomial
monomial = monomial * coeff
File "Pyfhel/PyCtxt.pyx", line 468, in Pyfhel.PyCtxt.PyCtxt.mul
File "Pyfhel/Pyfhel.pyx", line 1224, in Pyfhel.Pyfhel.Pyfhel.multiply_plain
ValueError: encrypted_ntt and plain_ntt parameter mismatch
Description:
I encountered a
ValueError
while using the Pyfhel library in theevaluate_polynomial
function. The error specifically points to a parameter mismatch betweenencrypted_ntt
andplain_ntt
. The issue arises when attempting to perform certain operations within the function.Code Issue:
/encry_minimaxcompa.py:63: UserWarning: Cannot align scales 0 and 30 (available rescalings: [])
monomial = monomial * coeff
Traceback (most recent call last):
File encry_minimaxcompa.py", line 108, in
c_result = MinimaxComp(encrypted_a, encrypted_b, alpha, epsilon, depth, margin, HE)
File "encry_minimaxcompa.py", line 20, in MinimaxComp
result = evaluate_polynomial(p, c_x, HE)
File "//encry_minimaxcompa.py", line 63, in evaluate_polynomial
monomial = monomial * coeff
File "Pyfhel/PyCtxt.pyx", line 468, in Pyfhel.PyCtxt.PyCtxt.mul
File "Pyfhel/Pyfhel.pyx", line 1224, in Pyfhel.Pyfhel.Pyfhel.multiply_plain
ValueError: encrypted_ntt and plain_ntt parameter mismatch
Code Snippet:
The text was updated successfully, but these errors were encountered: