Closed bluetail14 closed 1 year ago
There should be a serialize
and load
functions for that
how do I use them? e.g. enc_x_test.serialize?
You can refer to this example
I encrypted a 512-dimensional vector, turning it into a CKKS ciphertext encrypted_tensor
, and then used the serialization function encrypted_tensor.serialize()
. I found that its size became 40MB, while the original variable encrypted_tensor
was only 0.046875 KB. It expanded by 1000 times, is this normal?
Question
I have tried np.savez , torch.save and pickle.dump to save my encrypted vectors and am getting an error that 'TypeError: cannot pickle '_tenseal_cpp.CKKSVector' object'. Is there a way to save them into a file?
Further Information
Describe your question in greater length here.
e.g. of an encrypted vector
Screenshots
If applicable, add screenshots to help explain your question.
System Information
Python 3.10. numpy '1.25.1'
Additional Context
Add any other information