Skip to content

Commit

Permalink
Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
dtsip committed Feb 12, 2020
1 parent a733a88 commit 7c1e88e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion robustness/attacker.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def get_adv_examples(x):
def replace_best(loss, bloss, x, bx):
if bloss is None:
bx = x.clone().detach()
bloss = losses.clone().detach()
bloss = loss.clone().detach()
else:
replace = m * bloss < m * loss
bx[replace] = x[replace].clone().detach()
Expand Down

0 comments on commit 7c1e88e

Please sign in to comment.