title: How to divide a m by n tensor to a m by 1 tensor in tensorflow?
body: <p>I have a 2 by 3 tensor such as:</p>
  <pre><code>t1 = tf.constant([[1,2,3],[4,5,6],[8,9,10]])
  </code></pre>
  <p>And a 1D tensors of length 3:</p>
  <pre><code>t2 = tf.constant([.1,.2,0])
  </code></pre>
  <p>How can I divide all elements in the i-th row of <code>t1</code> by the i-th element in <code>t2</code> for all i=1,2,3. The results should be a 2 by 3 tensor:</p>
  <pre><code>[1/0.1  2/0.1  3/0.1
  
  4/.2   5/0.2  6/0.2
  
  8/0    9/0    10/0]
  </code></pre>
  <p>I don't want nans so anytime there is a division by 0 the results should be 0.</p>