title: In tensorflow, how do I reset a row of a tensor to zeros?
body: <p>I am working on recurrent neural network in Tensorflow.
  I have a tensor <code>H</code> which stores hidden states for a batch of inputs.</p>
  
  <p>Assume that <code>H</code> is of size <code>a*b</code>. How do I reset rows of <code>H</code>, given in a list, to <code>zeros</code>?</p>
  
  <p>e.g. if a list is <code>[1, 2]</code> I want to reset only those rows of <code>H</code> to <code>zeros</code>, leaving others intact.</p>