n class="p">:</span> <span class="n">torch</span><span class="o">.</span><span class="n">Tensor</span><span class="p">):</span></pre></div>
        </div>
    </div>
    <div class='section' id='section-8'>
        <div class='docs'>
            <div class='section-link'>
                <a href='#section-8'>#</a>
            </div>
            <p>创建后续掩码，以便变压器只能关注过去的令牌。</p>

        </div>
        <div class='code'>
            <div class="highlight"><pre><span cl