title: TensorFlow tf.equal() operator doesn't work as expected
body: <p>I wrote the following code, 
  but it doesn't work like I expect.
  I expected that <code>'true'</code> would be printed, but instead <code>'false'</code> is printed.
  Can you explain why this happens?</p>
  
  <pre><code>import tensorflow as tf
  
  #y_ = tf.constant([0, 1, 0])
  y  = tf.constant([0, 1, 0])
  
  with tf.Session() as sess:
      b = sess.run(tf.equal(y, y))
      if b is True:
          print 'true'
      else:
          print 'false'
  </code></pre>