ighlight"><span></span><span class="n">x</span></code>
是带形状的开关模块的输入<code  class="highlight"><span></span><span class="p">[</span><span class="n">seq_len</span><span class="p">,</span> <span class="n">batch_size</span><span class="p">,</span> <span class="n">d_model</span><span class="p">]</span></code>
</li></ul>

        </div>
        <div class='code'>
            <div class="highlight"><pre><span class="lineno">83</span>    <span class="k">def</span> <span class="nf">forward</spa