错误代码:
1 AttributeError: ‘tensorflow.python.framework.ops.EagerTensor’ object has no attribute ‘compile’

2AttributeError:Tensor.graph is meaningless when eager execution is enabled.

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'compile'

AttributeError:Tensor.graph is meaningless when eager execution is enabled.

错误解决
可能是版本不匹配的问题,tf2版本与Keras不匹配问题。

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐