TenSEAL icon indicating copy to clipboard operation
TenSEAL copied to clipboard

Get the max number of slots available

Open youben11 opened this issue 4 years ago • 11 comments

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.

youben11 avatar Aug 12 '20 09:08 youben11

I can try and take this on.

batch many values at a time

Is this like a packed encoding? Where we do SIMD?

IanQS avatar Sep 04 '20 18:09 IanQS

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.

youben11 avatar Sep 05 '20 08:09 youben11

Is this issue still open?

Dhairya3124 avatar Nov 05 '20 05:11 Dhairya3124

Yeah, it is

youben11 avatar Nov 05 '20 06:11 youben11

@youben11 Can you assign this to me?

Dhairya3124 avatar Nov 05 '20 06:11 Dhairya3124

@youben11 Thank you ! I'll start working up on this

Dhairya3124 avatar Nov 05 '20 06:11 Dhairya3124

Is this issue still open?

Praneshss avatar Apr 07 '21 11:04 Praneshss

Yes, the issue is still open.

bcebere avatar Apr 07 '21 11:04 bcebere

Ok. Let me work on it. Thanks

Praneshss avatar Apr 07 '21 11:04 Praneshss

Great! Please let us know if you need any help on this.

Thank you!

bcebere avatar Apr 07 '21 11:04 bcebere

Is there a switch that can set SIMD open or close?

yooopan avatar Dec 17 '21 01:12 yooopan