python报错:'list' object has no attribute 'shape'

时间:4年前   阅读:16548

numpy.array可使用 shape, list不能使用shape。
可以使用np.array(list A)进行转换。
(array转list:array B B.tolist()即可)

微信扫码关注

更新实时通知

上一篇:Tensorflow-常见报错解决方案

下一篇:tensorflow中 tf.reduce_mean函数

网友评论