【发布时间】:2016-02-26 06:47:48
【问题描述】:
当我构建文件:cifar10_train.py 时,会发生:
...
File ".../cifar10.py", line 271, in loss
indices = tf.reshape(tf.range(FLAGS.batch_size), [FLAGS.batch_size, 1])
TypeError: range() takes at least 2 arguments (1 given)
问题出现在文件cifar10.py。
【问题讨论】:
标签: python-2.7 tensorflow