title: How to reuse tensorflow variables in eager execution mode?
body: <p>When calling get_variable() function in tensorflow, the behavior of the "reuse" flag is defined in the <a href="https://www.tensorflow.org/api_docs/python/tf/variable_scope" rel="noreferrer">tensorflow api doc</a> to be AUTO_REUSE:</p>
  
  <blockquote>
    <p>reuse: True, None, or tf.AUTO_REUSE; ... <strong>When eager execution is
    enabled, this argument is always forced to be tf.AUTO_REUSE</strong>.</p>
  </blockquote>
  
  <p>However when I really run the demo code as suggested in the webpage:</p>
  
  <pre><code>tf.enable_eager_execution()
  def foo():
    with tf.variable_scope("foo", reuse=tf.AUTO_REUSE):
      v = tf.get_variable("v", [1])
    return v
  v1 = foo()  # Creates v.
  v2 = foo()  # Gets the same, existing v.
  assert v1 == v2
  </code></pre>
  
  <p>It fails. (It passes if the first line is removed, as expected.)</p>
  
  <p>So how to reuse a variable in eager mode? Is this a bug or I'm missing anything?</p>