tf.math.log_sigmoid
| Просмотреть исходный код на GitHub |
Вычисляет логарифм сигмоиды от x поэлементно.
tf.math.log_sigmoid(
x, name=None
)
В частности, y = log(1 / (1 + exp(-x))). Для повышения численной устойчивости используется y = -tf.nn.softplus(-x).
| Аргументы | |
|---|---|
x | Тензор типа float32 или float64. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
Тензор того же типа, что и 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/r1.15/api_docs/python/tf/math/log_sigmoid