Skip to content

Mismatch of comment and data type in secure_mode #731

Open
@heyday98

Description

Hi team,

I have a question about _generate_noise function in optimizer.py. From the comment in _generate_noise function, it references p=53 (as though using float64), but I don’t see any explicit dtype set. By default, PyTorch generates float32 noise (with p=23). I run few test and found that generated noise has dtype of torch.float32. If that’s correct, we might need 6 samples (n=3) to achieve 128-bit security. Is the code/comment correct, or am I missing something?

Thanks a lot!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions