提交 1a62ee33 编写于 作者: lyz_sea's avatar lyz_sea

lost return

上级 4e93b9e5
......@@ -36,7 +36,6 @@ class SaliencyMapAttack(Attack):
assert (adversary.target_label is None) or adversary.is_targeted_attack
target_labels = [adversary.target_label]
for target in target_labels:
original_image = adversary.original
......@@ -81,6 +80,8 @@ class SaliencyMapAttack(Attack):
adv_img = np.clip(adv_img, min_, max_)
return adversary
def _is_zero_mask(self, mask):
"""
The elements in mask are all zero or not.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册