OpenMined / TenSEAL

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

Can the TenSeal calculate the plurality of an encrypted vector? #401

Open KlausMichael0 opened 2 years ago

KlausMichael0 commented 2 years ago

Question

Can the TenSeal calculate the plurality of an encrypted vector?

Further Information

For an encrypted vector Enc(pk,[1, 1, 1, 2, 2]), can we get the encrypted plural Enc(pk, [1])? If possible, please tell me how to implement it! Thank you very much!