 class="n">Tensor</span><span class="p">]</span>:</span></span>

                <label class="view-source-button" for="Encoder.forward-view-source"><span>View Source</span></label>

    </div>
    <a class="headerlink" href="#Encoder.forward"></a>
            <div class="pdoc-code codehilite"><pre><span></span><span id="Encoder.forward-40"><a href="#Encoder.forward-40"><span class="linenos">40</span></a>    <span class="k">def</span> <span class="nf">forward</span><span class="p">(</span><span class="bp">s