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

Lattigo: support encoding scalar #1399

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

ZenithalHourlyRate
Copy link
Collaborator

Currently lattigo.bgv.encode does not support scalar input, which is the same as the Lattigo requirement where the API only supports int64{} or uint64{}.

However, for functions like the foo(int a, int b), we need a way to convert the argument to tensor for the encode op.

In the meantime, the lwe.rlwe_encode takes SignlessIntegerOrFloatLike input, which supports both scalar and tensor.

Instead of changing the lattigo.bgv.encode op input type requirement, we can just add another op tensor.from_elements during lowering.

@j2kun j2kun added the pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing label Feb 12, 2025
@copybara-service copybara-service bot merged commit 8e0ccf9 into google:main Feb 12, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull_ready Indicates whether a PR is ready to pull. The copybara worker will import for internal testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants