Skip to content

Commit

Permalink
correct f-strings in parallel/non-parallel AutoAttack metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Lockwood [IBM] <[email protected]>
  • Loading branch information
lockwoodar committed Jan 3, 2025
1 parent 27e4c81 commit c3eb480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions art/attacks/evasion/auto_attack.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def __repr__(self) -> str:
)
auto_attack_meta = (
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
+ "num_attacks={len(self.args)})"
+ f"num_attacks={len(self.args)})"
)
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"

Expand All @@ -342,7 +342,7 @@ def __repr__(self) -> str:
)
auto_attack_meta = (
f"AutoAttack(targeted={self.targeted}, parallel_pool_size={self.parallel_pool_size}, "
+ "num_attacks={len(self.attacks)})"
+ f"num_attacks={len(self.attacks)})"
)
return f"{auto_attack_meta}\nBestAttacks:\n{best_attack_meta}"

Expand Down

0 comments on commit c3eb480

Please sign in to comment.