tf1.0:解决方法
tf.enable_eager_execution(
config=None,
device_policy=None,
execution_mode=None
)
tf2.0:
电脑上运行不报错,notebook才会报错,解决方法
sess = tf.compat.v1.InteractiveSession()
sess
tf1.0:解决方法
tf.enable_eager_execution(
config=None,
device_policy=None,
execution_mode=None
)
tf2.0:
电脑上运行不报错,notebook才会报错,解决方法
sess = tf.compat.v1.InteractiveSession()
sess