Skip to content

Commit b3b8cf9

Browse files
authored
Fix style checks on too long line
1 parent e13740b commit b3b8cf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

art/attacks/evasion/imperceptible_asr/imperceptible_asr_pytorch.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,9 @@ class only supports targeted attack.
564564
if decoded_output[local_batch_size_idx] == y[local_batch_size_idx]:
565565
if loss_2nd_stage[local_batch_size_idx] < best_loss_2nd_stage[local_batch_size_idx]:
566566
# 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()
567+
best_loss_2nd_stage[local_batch_size_idx] = (
568+
loss_2nd_stage[local_batch_size_idx].detach().cpu().numpy()
569+
)
568570

569571
# Save the best adversarial example
570572
successful_adv_input[local_batch_size_idx] = masked_adv_input[local_batch_size_idx]

0 commit comments

Comments
 (0)