n class="op">(</span><span class="op">)</span></span>
<span></span>
<span><span class="va">nn</span> <span class="op">=</span> <span class="fu"><a href="../reference/nn.html">nn</a></span><span class="op">(</span><span class="op">)</span></span>
<span><span class="va">opt_func</span> <span class="op">=</span> <span class="fu"><a href="../reference/partial.html">partial</a></span><span class="op">(</span><span class="va">SGD</span>, momentum<span class="op">=</span><span class="fl">0.5</span><span class="op"