From 618db291a8938f4b9c1279e8f4148cec1cdd6553 Mon Sep 17 00:00:00 2001 From: Aidan Kelley Date: Sat, 23 May 2020 09:33:41 -0500 Subject: [PATCH] Made a fix to a small typo in the brendel_bethge attack that was causing a crash for me (#544) --- foolbox/attacks/brendel_bethge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/foolbox/attacks/brendel_bethge.py b/foolbox/attacks/brendel_bethge.py index 8333aa2f..bb469339 100644 --- a/foolbox/attacks/brendel_bethge.py +++ b/foolbox/attacks/brendel_bethge.py @@ -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()