OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to ignore the output with "WARNING: The input does not fit in a single ciphertext, and some operations will be disabled."?

lunan0320 opened this issue · comments

commented

Question

How to ignore the output with "WARNING: The input does not fit in a single ciphertext, and some operations will be disabled."?

Further Information

I use the TenSEAL package for CKKS encryption in FedAvg algorithm, what I need is just Add operations and I don not care the multiple operations, I desire to ignore the warning from the tenseal_vector.cpp.
But these implementations are cpp files, which I can not find where to delete the warning.

Is there any api for me to pass my needs, which is for add operations, not multiple .

The warnings carry a lot of space for the output terminal.
"WARNING: The input does not fit in a single ciphertext, and some operations will be disabled.
The following operations are disabled in this setup: matmul, matmul_plain, enc_matmul_plain, conv2d_im2col.
If you need to use those operations, try increasing the poly_modulus parameter, to fit your input."

Screenshots

image

System Information

  • OS: MAC OS M1pro
  • OS Version: 12.5.1
  • Language Version: python 3.10,
  • Package Manager Version: Conda 23.3.1

@lunan0320 Hey,

Currently having the same problem. Have you found a solution for it?

Greetings!