Skip to content

Commit 8448ec2

Browse files
author
Beat Buesser
committed
Update formatting to string
Signed-off-by: Beat Buesser <[email protected]>
1 parent f490f7d commit 8448ec2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

art/attacks/poisoning/clean_label_backdoor_attack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def poison( # pylint: disable=W0221
133133
if any(no_change_detected): # pragma: no cover
134134
logger.warning("Perturbed input is the same as original data after PGD. Check params.")
135135
idx_no_change = np.arange(len(no_change_detected))[no_change_detected]
136-
logger.warning(f"{len(idx_no_change)} indices without change: {idx_no_change}")
136+
logger.warning("%d indices without change: %s", len(idx_no_change), idx_no_change)
137137

138138
# Add backdoor and poison with the same label
139139
poisoned_input, _ = self.backdoor.poison(perturbed_input, self.target, broadcast=broadcast)

0 commit comments

Comments
 (0)