OpenMined/TenSEAL

About recreate tensor

Severusted opened this issue · 1 comments

Hello! I'm a beginner to learning this amazing work.
I want to ask 2 questions:
1.How to recover a tensor from bytes? I saw this example:
image
In the begining, I considerd the parameter context() is the object context. But it didn't work. Therefore,I don't know how to recover vec from vec_proto if I don't have vec.
2. If I need to broadcast the public key to all parties with socket, the size of public_context.serialize() is about 30,000,000B. I'll be appreciate if you have any more efficient methods.
Thanks for your attention. Looking forward to your reply.

Sorry, I used the wrong function. I need to use ckks_vector_from. The parameter is the object context.