title: Pytorch - Indexing a range of multiple Indices?
body: <p>Lets say I have a tensor of size [100, 100] and I have a set of <code>start_indices</code> and <code>end_indices</code> of size [100]</p>
  
  <p>I want to be able to do something like this:</p>
  
  <p><code>tensor[start_indices:end_indices, :] = 0</code></p>
  
  <p>Unfortunately, I get an error saying </p>
  
  <p><code>TypeError: only integer tensors of a single element can be converted to an index</code></p>
  
  <p>So is this actually possible without a for loop?</p>