Skip to content

Commit

Permalink
Fix style checks on too long line
Browse files Browse the repository at this point in the history
  • Loading branch information
beat-buesser committed May 10, 2022
1 parent e13740b commit b3b8cf9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,9 @@ class only supports targeted attack.
if decoded_output[local_batch_size_idx] == y[local_batch_size_idx]:
if loss_2nd_stage[local_batch_size_idx] < best_loss_2nd_stage[local_batch_size_idx]:
# Update best loss at 2nd stage
best_loss_2nd_stage[local_batch_size_idx] = loss_2nd_stage[local_batch_size_idx].detach().cpu().numpy()
best_loss_2nd_stage[local_batch_size_idx] = (
loss_2nd_stage[local_batch_size_idx].detach().cpu().numpy()
)

# Save the best adversarial example
successful_adv_input[local_batch_size_idx] = masked_adv_input[local_batch_size_idx]
Expand Down

0 comments on commit b3b8cf9

Please sign in to comment.