1、elu函数
图像:
2、tensorflow elu应用
import tensorflow as tf input=tf.constant([0,-1,2,-3],dtype=tf.float32) output=tf.nn.elu(input) with tf.Session() as sess: print('input:') print(sess.run(input)) print('output:') print(sess.run(output)) sess.close()
输出结果:
input:
[ 0. -1. 2. -3.]
output:
[ 0. -0.63212055 2. -0.95021296]