python学习日记13ValueError: None values not supported 查错

在修改程序添加代码时,忽然报错ValueError: None values not supported
在报错的代码行查找,有某个tensor的维度错误。可以在console中,做模拟的tensor来试验
sample=tf.ones([10,1],tf.float32)
tf.Session().run(sample)

tf.shape(tf.placeholder(tf.float32,[None,1]))
对placeholder的理解还要进一步研究

猜你喜欢

转载自blog.csdn.net/weixin_43387285/article/details/84098524
今日推荐