报错提示:
cifar10.py : ValueError: Shapes (2, 128, 1) and () are incompatible
报错原因:Tensorflow版本冲突,concat方法参数顺序修改
解决方案:执行如下修改
# 报错代码
concated = tf.concat(1, [indices, sparse_labels])
# 改正代码
concated = tf.concat([indices, sparse_labels], 1)
报错提示:
cifar10.py : ValueError: Shapes (2, 128, 1) and () are incompatible
报错原因:Tensorflow版本冲突,concat方法参数顺序修改
解决方案:执行如下修改
# 报错代码
concated = tf.concat(1, [indices, sparse_labels])
# 改正代码
concated = tf.concat([indices, sparse_labels], 1)