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 | Tensor с типом float32 или float64. |
name | Имя операции (необязательно). |
| Возвращает | |
|---|---|
Tensor того же типа, что и 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/math/log_sigmoid