阅读(941) (9)

TensorFlow函数教程:tf.keras.activations.elu

2019-03-01 15:02:36 更新

tf.keras.activations.elu函数

tf.keras.activations.elu(
    x,
    alpha=1.0
)

定义在:tensorflow/python/keras/activations.py。

指数线性单位。

参数:

  • x:输入张量。
  • alpha:标量,负部分的斜率。

返回:

The exponential linear activation: `x` if `x > 0` and
  `alpha * (exp(x)-1)` if `x < 0`.