 for iterative optimization since &quot;</span>
                                  <span class="s2">&quot;it updates just one coordinate at a time.&quot;</span><span class="p">)</span>

      <span class="c1"># Update and clip adversarial example in current iteration</span>
      <span class="n">ax</span> <span class="o">=</span> <span class="n">ax</span> <span class="o">+</span> <span class="n">optimal_perturbation</span>
      <span class="n">ax</span> <span class="o">=</span> <span class="n">x</span> <spa