on-link'>
                <a href='#section-42'>#</a>
            </div>
            <h3>Sampling function to generate samples periodically while training</h3>

        </div>
        <div class='code'>
            <div class="highlight"><pre><span class="lineno">176</span>    <span class="nd">@torch</span><span class="o">.</span><span class="n">no_grad</span><span class="p">()</span>
<span class="lineno">177</span>    <span class="k">def</span> <span class="nf">sample</span><span class="p">(</span><span cl