tf.raw_ops.Elu
Вычисляет экспоненциально-линейную функцию.
tf.raw_ops.Elu(
features, name=None
)
Функция ELU определяется следующим образом:
- \( e ^ x - 1 \) если \( x < 0 \)
- \( x \) если \( x >= 0 \)
Примеры:
tf.nn.elu(1.0) <tf.Tensor: shape=(), dtype=float32, numpy=1.0> tf.nn.elu(0.0) <tf.Tensor: shape=(), dtype=float32, numpy=0.0> tf.nn.elu(-1000.0) <tf.Tensor: shape=(), dtype=float32, numpy=-1.0>
См. Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)
| Аргументы | |
|---|---|
features | A Tensor. Должен быть одним из следующих типов: half, bfloat16, float32, float64. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
A Tensor. Имеет тот же тип, что и features. |
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/raw_ops/Elu