title: TensorFlow 1.8.0, eager execution and comparison don't behave as expected
body: <p>In the TensorFlow programmer guide the <a href="https://www.tensorflow.org/programmers_guide/eager" rel="nofollow noreferrer">Flow Control/FizzBuzz</a> example shows:</p>
  
  <pre><code>num = tf.constant(num)
  if num % 3 == 0 and num % 5 == 0:
  </code></pre>
  
  <p>However, that doesn't work for me.</p>
  
  <pre><code>fiver % 5 == 0
  False
  </code></pre>
  
  <p>The only way I have gotten this to work successfully is by using:</p>
  
  <pre><code>(num % 5).numpy() == 0
  </code></pre>
  
  <p>Are python comparisons supposed to work with the <code>EagerTensor</code> type? <code>tf.equal()</code> works, of course, but the example shows direct comparisons like <code>== 0</code>.</p>