Spec-Zone.ru › TensorFlow

tf.keras.ops.log_sigmoid

Логарифм сигмоидной функции активации.

Просмотр псевдонимов

Основные псевдонимы

tf.keras.ops.nn.log_sigmoid

tf.keras.ops.log_sigmoid(
    x
)

Она определяется как f(x) = log(1 / (1 + exp(-x))).

Аргументы
x Входной тензор.
Возвращаемое значение
Тензор с той же формой, что и x.

Пример:

x = keras.ops.convert_to_tensor([-0.541391, 0.0, 0.50, 5.0])
keras.ops.log_sigmoid(x)
array([-1.0000418, -0.6931472, -0.474077, -0.00671535], dtype=float32)

© 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/keras/ops/log_sigmoid

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API