TensorFlow: unset 'reuse' in variable scope
<p>Is there way to unset <code>reuse</code> in variable scope?
I tried following commands:</p>

<pre><code>In [1]: import tensorflow as tf

In [2]: tf.get_variable_scope().reuse
Out[2]: False

In [3]: tf.get_variable_scope().reuse_variables
Out[3]: &lt;bound method VariableScope.reuse_variables of &lt;tensorflow.python.ops.variable_scope.VariableScope object at 0x7fd9cc46c4d0&gt;&gt;

In [4]: tf.get_variable_scope().reuse_variables()

In [5]: tf.get_variable_scope().reuse
Out[5]: True

In [6]: tf.get_variable_scope().reuse_variables()

In [7]: tf.get_variable_scope().reuse
Out[7]: True

In [8]: tf.get_variable_scope().reuse_variables(False)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-8-ba19ed12625c&gt; in &lt;module&gt;()
----&gt; 1 tf.get_variable_scope().reuse_variables(False)

TypeError: reuse_variables() takes exactly 1 argument (2 given)

In [9]: tf.get_variable_scope().reuse = False
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
&lt;ipython-input-9-ddd0b37e4f0e&gt; in &lt;module&gt;()
----&gt; 1 tf.get_variable_scope().reuse = False

AttributeError: can't set attribute

In [10]: tf.get_variable_scope().reuse_variables = False

In [11]: tf.get_variable_scope().reuse_variables()
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
&lt;ipython-input-11-d03dc0fb25b6&gt; in &lt;module&gt;()
----&gt; 1 tf.get_variable_scope().reuse_variables()

TypeError: 'bool' object is not callable
</code></pre>

<p>As you can see, I can't unset <code>reuse</code> by calling <code>reuse_variables</code> even number of times, I can't set it with <code>=</code> operator and for some reason I can set whatever I want instead <code>reuse_variables</code> function (is it a bug?).</p>