>
        <div class='docs'>
            <div class='section-link'>
                <a href='#section-43'>#</a>
            </div>
            <p>各エポックの最後のバッチでモデルパラメータと勾配を記録します</p>

        </div>
        <div class='code'>
            <div class="highlight"><pre><span class="lineno">155</span>            <span class="k">if</span> <span class="n">batch_idx</span><span class="o">.</span><span class="n">is_last</span><span class="p">:</span>
<span cl