AttributeError: 'int' object has no attribute 'op' 主要是tesorflow1.x和tensorflow2.x版本问题 import tensorflow as tf from tensorflow.keras import backend as K tf.compat.v1.disable_eager_execution()
增加上述第三行代码可以解决
AttributeError: 'int' object has no attribute 'op' 主要是tesorflow1.x和tensorflow2.x版本问题 import tensorflow as tf from tensorflow.keras import backend as K tf.compat.v1.disable_eager_execution()
增加上述第三行代码可以解决