小编Hem*_*emp的帖子

tensorflow eager模块出错

我的操作系统是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'

那有什么不对?

tensorflow

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

tensorflow ×1