成功解决ValueError: Cannot feed value of shape (1, 10, 4) for Tensor Placeholder:0 , which has shape

成功解决ValueError: Cannot feed value of shape (1, 10, 4) for Tensor 'Placeholder:0', which has shape '(


解决问题

ValueError: Cannot feed value of shape (1, 10, 4) for Tensor 'Placeholder:0', which has shape '(?, 15, 4)'

解决思路

值错误:无法为张量'Pl提供形状(1、10、4)的值Placeholder:0',此时形状为'(?,15,4)'

解决方法

两个Tensor的维度不一致导致,所以要保持输出数据的维度一致,博主通过调整维度,最后将通过匹配解决了这个问题。大家可以尝试输出shape,要保持一致即可!
如网友遇到问题 不解,可留言与博主共同探讨!

(0)

相关推荐