Skip to content

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

@TIEHua

Description

@TIEHua

您好,我在运行代码时,发现您在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,不知是否正确

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