Skip to content

too big tolerance for SerializeTest.HostCKKSCiphertext  #20

@black6816

Description

@black6816

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions