Why tf.Variable is iterable but can't be iterated
<p>Why this is true:</p>

<pre><code>from collections import Iterable
import tensorflow as tf

v = tf.Variable(1.0)
print(isinstance(v, Iterable))

True
</code></pre>

<p>while this</p>

<pre><code>iter(v)
</code></pre>

<p>gives</p>

<pre><code>TypeError: 'Variable' object is not iterable.
</code></pre>