TenSEAL
TenSEAL copied to clipboard
Get the max number of slots available
Feature Description
In both CKKS and BFV (when using the batchencoder), we can batch many values at a time, up to some extent, we want to provide an API endpoint (e.g. .max_slots()
) to return this maximum value.
What alternatives have you considered?
We can also add API endpoints for getting poly_mod_degree which we can infer the number of slots later depending on the scheme used, however, this requires some HE expertise, and a simple endpoint that doesn't require further computation might be simpler.
I can try and take this on.
batch many values at a time
Is this like a packed encoding? Where we do SIMD?
We want to know the number of slots available if we used packing. We currently use the CKKSEncoder and BatchEncoder in the TenSEALEncoder, which both have a slot_counts method, we only need to bind that to the user so he can get that number.
Is this issue still open?
Yeah, it is
@youben11 Can you assign this to me?
@youben11 Thank you ! I'll start working up on this
Is this issue still open?
Yes, the issue is still open.
Ok. Let me work on it. Thanks
Great! Please let us know if you need any help on this.
Thank you!
Is there a switch that can set SIMD open or close?