Skip to content

Commit c736e39

Browse files
authored
Merge pull request #1698 from Trusted-AI/development_issue_1697
Support numpy arrays in logger of clean_label_backdoor_attack
2 parents cdb081a + 8448ec2 commit c736e39

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("%d indices without change: %d", len(idx_no_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)