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

您好,有关read_me中Run Attacks的运行命令的一点问题 #2

Open
TIEHua opened this issue Apr 5, 2024 · 0 comments
Open

Comments

@TIEHua
Copy link

TIEHua commented Apr 5, 2024

您好,我在运行代码时,发现您在Read_me中的歧义攻击1为

Ambiguity attack I

python amb_attack_v3.py --type fake2
但在代码中,这部分定义为:
if 'fake2-' in self.type:
shape = []
x = torch.cuda.FloatTensor(shape)
noise1 = torch.randn(*key.size(), out=x)
noise2 = torch.randn(*key.size(), out=x)
torch.randn(*key.size())
m.register_parameter(keyname, nn.Parameter( noise1 ))
m.register_parameter(skeyname, nn.Parameter( noise2 ))
因此,这部分命令应为 python amb_attack_v3.py --type fake2-1,不知是否正确

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

1 participant