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

too big tolerance for SerializeTest.HostCKKSCiphertext #20

Open
black6816 opened this issue Dec 20, 2024 · 1 comment
Open

too big tolerance for SerializeTest.HostCKKSCiphertext #20

black6816 opened this issue Dec 20, 2024 · 1 comment

Comments

@black6816
Copy link

black6816 commented Dec 20, 2024

hi, i find the test case SerializeTest.HostCKKSCiphertext ailed some times, so,i change the test code to

    TEST(SerializeTest, HostCKKSCiphertext) {
        for(int i=0;i<100;i++) {
            printf("i=%2d\n", i);
        GeneralHeContext ghe(false, SchemeType::CKKS, 32, 0, { 60, 60, 60 }, false, 0x123, 10, 1<<16, 1e-2);
        test_ciphertext(ghe);
        }
    }

then , this test will fail.
if i change tolerance to 1e-1 or 1.8e-2,the test case can pass.

@lightbulb128
Copy link
Owner

I think that is the expected behavior. For higher precision you might want to set the scale larger.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants