问题:
TypeError: Failed to convert object of type <class ‘list’> to Tensor. Contents: [Dimension(None), -1]. Consider casting elements to a supported type.
解决方法:
tf.reshape(max_pool, [batch_num, -1])改为tf.layers.flatten(max_pool)
TypeError: Failed to convert object of type class 'list' to Tensor. Contents: [Dimension(None), -1
最新推荐文章于 2022-01-23 16:33:46 发布