TypeError: 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
相關文章
相關標籤/搜索