Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the max number of slots available #136

Open
youben11 opened this issue Aug 12, 2020 · 11 comments
Open

Get the max number of slots available #136

youben11 opened this issue Aug 12, 2020 · 11 comments
Assignees
Labels
Good first issue 🎓 Perfect for beginners, welcome to OpenMined! Type: New Feature ➕ Introduction of a completely new addition to the codebase

Comments

@youben11
Copy link
Member

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 youben11 added Type: New Feature ➕ Introduction of a completely new addition to the codebase Good first issue 🎓 Perfect for beginners, welcome to OpenMined! labels Aug 12, 2020
@IanQS
Copy link
Member

IanQS commented Sep 4, 2020

I can try and take this on.

batch many values at a time

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

@youben11
Copy link
Member Author

youben11 commented Sep 5, 2020

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.

@Dhairya3124
Copy link

Is this issue still open?

@youben11
Copy link
Member Author

youben11 commented Nov 5, 2020

Yeah, it is

@Dhairya3124
Copy link

@youben11 Can you assign this to me?

@Dhairya3124
Copy link

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

@Praneshss
Copy link

Is this issue still open?

@bcebere
Copy link
Member

bcebere commented Apr 7, 2021

Yes, the issue is still open.

@Praneshss
Copy link

Ok. Let me work on it. Thanks

@bcebere
Copy link
Member

bcebere commented Apr 7, 2021

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

Thank you!

@bcebere bcebere assigned Praneshss and unassigned Dhairya3124 Apr 7, 2021
@yooopan
Copy link

yooopan commented Dec 17, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Good first issue 🎓 Perfect for beginners, welcome to OpenMined! Type: New Feature ➕ Introduction of a completely new addition to the codebase
Projects
None yet
Development

No branches or pull requests

6 participants