AttributeError: ‘Tensor‘ object has no attribute ‘_keras_shape‘
报错AttributeError: ‘Tensor‘ object has no attribute ‘_keras_shape‘原因应该是TensorFlow版本不同,导致API有所不同解决找到报错位置的代码对应FileCtrl+F,查找_keras_shape,替换为shape参考AttributeError: ‘Tensor‘ object has no attribute ‘_keras_
·
报错
AttributeError: ‘Tensor‘ object has no attribute ‘_keras_shape‘
原因
应该是TensorFlow版本不同,导致API有所不同
解决
找到报错位置的代码对应File
Ctrl+F,查找_keras_shape
,替换为shape
参考
AttributeError: ‘Tensor‘ object has no attribute ‘_keras_shape‘
更多推荐
所有评论(0)