title: How to get the value of a variable defined in tf.name_scope()?
body: <pre><code>with tf.name_scope('hidden4'):
      weights = tf.Variable(tf.convert_to_tensor(weights4))
      biases = tf.Variable(tf.convert_to_tensor(biases4))
      hidden4 = tf.sigmoid(tf.matmul(hidden3, weights) + biases)
  </code></pre>
  
  <p>I want to ues tf.get_variable to get the variable hidden4/weights defined as above, but failed as below:</p>
  
  <pre><code>hidden4weights = tf.get_variable("hidden4/weights:0")
  *** ValueError: Variable hidden4/weights:0 already exists, disallowed.       Did you mean to set reuse=True in VarScope? Originally defined at:
  
  File "&lt;stdin&gt;", line 1, in &lt;module&gt;
  File "/usr/local/lib/python2.7/pdb.py", line 234, in default
  exec code in globals, locals
  File "/usr/local/lib/python2.7/cmd.py", line 220, in onecmd
  return self.default(line)
  </code></pre>
  
  <p>Then I try hidden4/weights.eval (sess), but it also failed.</p>
  
  <pre><code>(Pdb) hidden4/weights.eval(sess)
  *** NameError: name 'hidden4' is not defined
  </code></pre>