codecamp

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

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`.
TensorFlow函数教程:tf.keras.activations.deserialize
TensorFlow函数教程:tf.keras.activations.exponential
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定