Skip to content

code problem about "attack_version" #30

@kirtons

Description

@kirtons

in line 104 of eval_sde_adv.py,
if attack_version == 'standard':
attack_list = ['apgd-ce', 'apgd-t', 'fab-t', 'square']
This attack_list is passed as an argument in the AutoAttack call in line 117. However, according to the definition in autoattack.py:
if version in ['standard', 'plus', 'rand'] and attacks_to_run != []:
raise ValueError("attacks_to_run will be overridden unless you use version='custom'")
Is this a potential bug in the code?

image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions