                                                <span class="n">tf</span><span class="o">.</span><span class="n">cast</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">clip_max</span><span class="p">,</span>
                                                        <span class="n">x</span><span class="o">.</span><span class="n">dtype</span><span class="p">)))</span>

    <span class="c1"># Initialize loop variables</span>
    <span class="n">momentum</span> <spa