title: Is it possible to code a condition in Tensorflow which is not a tensor?
body: <p>I would like to have this fonction and I don't know if it is possible :</p>
  
  <pre><code>x=tf.constant([1,2,3])
  </code></pre>
  
  <p>the equivalent of <code>tf.greater(x[1],x[2])</code> with a type <code>bool</code> (not tensor of bool) to be used in a if then else condition</p>
  
  <p>the code <code>tf.cond(tf.greater(x[1],x[2]),lambda : (),lambda: ())</code> is a condition to make an other node so it doesn't work :( </p>