Tensor flow has no attribute elu (exponential linear unit)

345 views Asked by At

I have been using tensor flow to implement a neural network, but I am not sure what is happening but I am getting this error message:

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

If I replace tf.nn.elu(tf.matmul(X,w_h1)+b_h1) by tf.nn.relu(tf.matmul(X,w_h1)+b_h1) it works well.

However, the activation function elu is listed here.

Does anybody know what must be happening?

1

There are 1 answers

0
Timi On BEST ANSWER

enter image description here

the error must happened by tensorflow's version