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
When I used rescale_to_next(), it did not work as it should. It turns cypher text from level 1, I mean <mod_level=1>, to none instead of level 0 <mod_level=0>
I was reading some issues having somewhat similar descriptions. Should it be due to runnig out of available rescalings? Then the problem can be solved following #224.
Description
When I used rescale_to_next(), it did not work as it should. It turns cypher text from level 1, I mean <mod_level=1>, to none instead of level 0 <mod_level=0>
Code To Reproduce Error
Result:
enc_i <Pyfhel Ciphertext at 0x7b2ba1e1f0b0, scheme=ckks, size=2/2, scale_bits=30, mod_level=0>
enc_index <Pyfhel Ciphertext at 0x7b2fc82e5d50, scheme=ckks, size=2/2, scale_bits=30, mod_level=0>
comparison_result <Pyfhel Ciphertext at 0x7b2fc82e5d50, scheme=ckks, size=3/3, scale_bits=60, mod_level=1>
comparison_result None
Pyfhel/Pyfhel.pyx in Pyfhel.Pyfhel.Pyfhel.sub()
RuntimeError: scheme type mistmatch in sub terms ({ctxt._scheme} VS {ctxt_other._scheme}
I expect the value of comparison_result to be rescaled to (level 0) instead of none, but I think the rescale function behaviour.
My Setup:
The text was updated successfully, but these errors were encountered: