Skip to content

Mismatch of comment and data type in secure_mode #731

Closed
@heyday98

Description

@heyday98

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!

Metadata

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