title: Failed to convert object of type <class 'function'> to Tensor
body: <p>I am trying to randomize the flip augmentation using tensorflow's left_right and up_down augmentation function. I am getting error mapping the function based on the boolean condition via tf.cond()</p>
  
  <pre><code>random_number=tf.random_uniform([],seed=seed)
  print_random_number=tf.print(random_number)
  flip_strategy=tf.less(random_number,0.5)
  </code></pre>
  
  <h1>version 0.1</h1>
  
  <pre><code>image=tf.cond
          (
              flip_strategy,
              tf.image.flip_left_right(image),
              tf.image.flip_up_down(image),
          )
  </code></pre>
  
  <h1>version 0.2</h1>
  
  <pre><code>image=tf.cond
              (
                  flip_strategy,
                  lambda: tf.image.flip_left_right(image),
                  lambda: tf.image.flip_up_down(image),
              )
  </code></pre>
  
  <h1>ERROR</h1>
  
  <p>TypeError: Failed to convert object of type  to Tensor. Contents: . Consider casting elements to a supported type.ROR:</p>
  
  <p>Let me know what am I missing or if more info is needed.</p>