【发布时间】:2018-12-13 12:21:20
【问题描述】:
使用 python 3.x tensorflow 版本 1.8.0
代码1:
a2 = [['1', '2'], ['1', '2']]
print(tf.shape(a2))
鳕鱼2:
a2 = [['1', '2', '3'], ['1']]
print(tf.shape(a2))
cod1 成功但 code2 错误:
ValueError: Argument must be a dense tensor: [['1', '2', '3'], ['1']] - got shape [2], but wanted [2, 3].
tensorflow var 有余额吗? 为什么code2是错误的?
【问题讨论】:
-
“tensorflow var 有余额”是个什么样的问题?
标签: python python-3.x tensorflow