使用python 3.x tensorflow版本1.8.0
代码1:
a2 = [['1', '2'], ['1', '2']]
print(tf.shape(a2))
cod2:
a2 = [['1', '2', '3'], ['1']]
print(tf.shape(a2))
cod1成功,但代码2错误:
ValueError: Argument must be a dense tensor: [['1', '2', '3'], ['1']] - got shape [2], but wanted [2, 3].
tensorflow var是否有平衡? 为什么code2错误?