tensorflow eager模块出错

Hem*_*emp 3 tensorflow

我的操作系统是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)
Run Code Online (Sandbox Code Playgroud)

我有

AttributeError:模块'tensorflow.contrib.eager'没有属性'enable_eager_execution'

那有什么不对?

Sun*_*eef 6

来自Eager 用户指南:

急切执行不包含在TensorFlow的最新版本(1.4版)中.要使用它,您需要从源构建TensorFlow或安装每晚构建.

尝试安装Tensorflow的每晚构建而不是1.4.0.