title: How to get a dense representation of one-hot vectors
body: <p>Suppose a <code>Tensor</code> containing :</p>
  
  <pre><code>[[0 0 1]
   [0 1 0]
   [1 0 0]]
  </code></pre>
  
  <p>How to get the dense representation in a native way (without using <code>numpy</code> or iterations) ? </p>
  
  <pre><code>[2,1,0]
  </code></pre>
  
  <p>There is <a href="https://www.tensorflow.org/versions/r0.11/api_docs/python/array_ops.html#one_hot" rel="noreferrer"><code>tf.one_hot()</code></a> to do the inverse, there is also <a href="https://www.tensorflow.org/versions/r0.11/api_docs/python/sparse_ops.html#sparse_to_dense" rel="noreferrer"><code>tf.sparse_to_dense()</code></a> that seems to do it but I was not able to figure out how to use it.</p>