张量流没有属性洗脱(指数线性单位)

时间:2017-08-26 02:03:28

标签: python-2.7 tensorflow activation-function

我一直在使用张量流来实现神经网络,但我不确定发生了什么,但我收到此错误消息:

h1=tf.nn.elu(tf.matmul(X,w_h1)+b_h1)  
AttributeError: 'module' object has no attribute 'elu'

如果我将tf.nn.elu(tf.matmul(X,w_h1)+b_h1)替换为tf.nn.relu(tf.matmul(X,w_h1)+b_h1),则效果很好。

但是,激活功能elu列在here

有人知道必须发生什么吗?

1 个答案:

答案 0 :(得分:1)

enter image description here

错误必须由tensorflow的版本

发生
相关问题