Closed wzjin2017 closed 1 year ago
I think that is expected. It's not a bug. This is one of downsides of using HE - memory requirements blows up quite fast (depending on alot of factors such as scheme, security parameters etc)
If you require a lighter footprint you could try experimenting with using ckks_vector
instead of ckks_tensor
, its a 1D array rather than N-dimensional.
Description
The ciphertext is fairly large. I encrypted a tensor of 5k numbers. The ciphertext ends up being 1700MB big. The plaintext (torch tensor) I saved, however, is around 50 KB. Is this the expected behavior or am I messing up something here?
How to Reproduce
My test code goes like this.