tf.keras.backend.hard_sigmoid
| Просмотреть исходный код на GitHub |
Сегментно-линейное приближение сигмоиды.
tf.keras.backend.hard_sigmoid(
x
)
Быстрее, чем сигмоида. Возвращает 0. если x < -2.5, 1. если x > 2.5. В -2.5 <= x <= 2.5, возвращает 0.2 * x + 0.5.
| Аргументы | |
|---|---|
x | Тензор или переменная. |
| Возвращаемое значение | |
|---|---|
| Тензор. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/keras/backend/hard_sigmoid