      Xs = d2l.tensor(corpus[offset:offset + num_tokens])
      Ys = d2l.tensor(corpus[offset + 1:offset + 1 + num_tokens])
      Xs, Ys = Xs.reshape(batch_size, -1), Ys.reshape(batch_size, -1)
      num_batches = Xs.shape[1] // num_steps
      for i in range(0, num_batches * num_steps, num_steps):
          X = Xs[:, i:i + num_steps]
          Y = Ys[:, i:i + num_steps]
          yield X, Y
  
  
 
</s>
    for i in range(0, num_steps * num_batches, num_steps):
      Xs = d2l.tensor(corpus[offset:offset + num_tokens])
      Ys = d2l.tensor(corpus[offset + 1:offset + 1 + num_tokens])
      Xs, Ys = Xs.reshape(batch_size, -1), Ys.reshape(batch_size, -1)
      num_batches = Xs.shape[1] // num_steps
    for i in range(0, num_steps * num_batches, num_steps):
          X = Xs[:, i:i + num_steps]
          Y = Ys[:, i:i + num_steps]
          yield X, Y
  
  
keep keep keep keep replace keep keep keep keep keep
 [slides] dl computation (#749)

* add slides

* fix CI error
d2l/torch.py