tensorflow 报错ValueError: tf.enable_eager_execution must be called at program startup.

报错1:

AttributeError: ‘RefVariable’ object has no attribute ‘_id’

报错2:

ValueError: tf.enable_eager_execution must be called at program startup.

解决:

在导入tensorflow之后,整个jupyter代码之前运行如下代码:
tf.enable_eager_execution()
tensorflow 报错ValueError: tf.enable_eager_execution must be called at program startup._第1张图片

你可能感兴趣的:(大数据软件)