We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13740b commit b3b8cf9Copy full SHA for b3b8cf9
art/attacks/evasion/imperceptible_asr/imperceptible_asr_pytorch.py
@@ -564,7 +564,9 @@ class only supports targeted attack.
564
if decoded_output[local_batch_size_idx] == y[local_batch_size_idx]:
565
if loss_2nd_stage[local_batch_size_idx] < best_loss_2nd_stage[local_batch_size_idx]:
566
# Update best loss at 2nd stage
567
- 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] = (
568
+ loss_2nd_stage[local_batch_size_idx].detach().cpu().numpy()
569
+ )
570
571
# Save the best adversarial example
572
successful_adv_input[local_batch_size_idx] = masked_adv_input[local_batch_size_idx]
0 commit comments