错误代码:
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不匹配问题。