Skip to content

Commit

Permalink
Made a fix to a small typo in the brendel_bethge attack that was caus…
Browse files Browse the repository at this point in the history
…ing a crash for me (#544)
  • Loading branch information
AidanKelley committed May 23, 2020
1 parent 82a27dd commit 618db29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion foolbox/attacks/brendel_bethge.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ def run( # noqa: C901
init_attack = self.init_attack
# TODO: use call and support all types of attacks (once early_stop is
# possible in __call__)
starting_points = self.init_attack.run(model, originals, criterion_)
starting_points = init_attack.run(model, originals, criterion_)

best_advs = ep.astensor(starting_points)
assert is_adversarial(best_advs).all()
Expand Down

0 comments on commit 618db29

Please sign in to comment.