From 4d5b93cfb52bf095c6836a50fc6a7295905eeaa3 Mon Sep 17 00:00:00 2001 From: zimmerrol Date: Fri, 27 Oct 2023 17:02:01 +0200 Subject: [PATCH] Fix typo --- foolbox/attacks/brendel_bethge.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/foolbox/attacks/brendel_bethge.py b/foolbox/attacks/brendel_bethge.py index bbb7afb6..d187056b 100644 --- a/foolbox/attacks/brendel_bethge.py +++ b/foolbox/attacks/brendel_bethge.py @@ -569,7 +569,9 @@ def logits_diff_and_grads(x) -> Tuple[Any, Any]: # add step to current perturbation x = (x + ep.astensor(deltas)).reshape(original_shape) - tb.probability("converged", ep.from_numpy(x, converged.astype(np.bool_)), step) + tb.probability( + "converged", ep.from_numpy(x, converged.astype(np.bool_)), step + ) tb.histogram("norms", source_norms, step) tb.histogram("candidates/distances", distances, step)