【发布时间】:2017-02-09 23:12:03
【问题描述】:
为什么会这样:
from collections import Iterable
import tensorflow as tf
v = tf.Variable(1.0)
print(isinstance(v, Iterable))
True
此时
iter(v)
给予
TypeError: 'Variable' object is not iterable.
【问题讨论】:
标签: python python-2.7 tensorflow iterable