OpenMined / TenSEAL

A library for doing homomorphic encryption operations on tensors
Apache License 2.0
807 stars 155 forks source link

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

Open lunan0320 opened 1 year ago

lunan0320 commented 1 year ago

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

Ksieber26 commented 8 months ago

@lunan0320 Hey,

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

Greetings!