><pre><span></span><code><span class="k">class</span> <span class="nc">PaddedLabelEncodedDataset</span><span class="p">(</span><span class="n">torch</span><span class="o">.</span><span class="n">utils</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">Dataset</span><span class="p">):</span>
    <span class="sd">&quot;&quot;&quot;A dataset that returns a tuple of `(X, y)` where `X` and `y` are both</span>
<span class="sd">    torch tensors. `X` is a sequence of i