ypeError: Failed to convert object of type class ‘list‘ to Tensor. Contents: [Dimension(None), -1

问题: 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])改为t
相关文章
相关标签/搜索