Skip to content

Commit 0845d57

Browse files
author
Beat Buesser
committed
Update test
Signed-off-by: Beat Buesser <[email protected]>
1 parent f008004 commit 0845d57

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

art/attacks/evasion/adversarial_patch/adversarial_patch_tensorflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ def _probabilities(self, images: "tf.Tensor") -> "tf.Tensor":
177177
patched_input, clip_value_min=self.estimator.clip_values[0], clip_value_max=self.estimator.clip_values[1],
178178
)
179179

180+
# from matplotlib import pyplot as plt
181+
# plt.matshow(patched_input[0, :, :, 0])
182+
# plt.show()
183+
180184
probabilities = self.estimator._predict_framework(patched_input)
181185

182186
return probabilities

0 commit comments

Comments
 (0)