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