">(</span><span class="n">idx</span><span class="p">)</span></code>

</h3>


  <div class="doc doc-contents ">
  
      <p>Returns a tuple of <code>(X, y)</code> where <code>X</code> and <code>y</code> are both torch tensors. <code>X</code> is a
sequence of integers representing the SMILES tokens, and <code>y</code> is the same
sequence shifted by one position to the right.</p>

  <p><strong>Parameters:</strong></p>
  <table>
    <thead>
      <tr>
        <th>Name</th>
        <th>Type</th>
        <th>Des