【发布时间】:2019-03-28 23:16:16
【问题描述】:
我的操作系统是 Ubuntu 16.04
Python 版本是 3.5
Tensorflow 版本为 14.0
当我尝试 TF Eager 模块的简单代码时
import tensorflow as tf
import tensorflow.contrib.eager as tfe
tfe.enable_eager_execution()
x = [[2.]]
m = tf.matmul(x, x)
我明白了
AttributeError:模块“tensorflow.contrib.eager”没有属性“enable_eager_execution”
那怎么了?
【问题讨论】:
标签: tensorflow