Spec-Zone.ru › TensorFlow 2.3

tf.math.xlog1py

Вычислить x * log1p(y).

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

Псевдонимы совместимости для миграции

См. Руководство по миграции для получения более подробной информации.

tf.compat.v1.math.xlog1py

tf.math.xlog1py(
    x, y, name=None
)

Учитывая x и y, вычислить x * log1p(y). Эта функция безопасно возвращает ноль, когда x = 0, независимо от значения y.

Пример:

tf.math.xlog1py(0., 1.)
<tf.Tensor: shape=(), dtype=float32, numpy=0.>
tf.math.xlog1py(1., 1.)
<tf.Tensor: shape=(), dtype=float32, numpy=0.6931472>
tf.math.xlog1py(2., 2.)
<tf.Tensor: shape=(), dtype=float32, numpy=2.1972246>
tf.math.xlog1py(0., -1.)
<tf.Tensor: shape=(), dtype=float32, numpy=0.>
Аргументы
x A tf.Tensor типа bfloat16, half, float32, float64, complex64, complex128
y A tf.Tensor типа bfloat16, half, float32, float64, complex64, complex128
name Имя операции (необязательно).
Возвращаемое значение
x * log1p(y).

Совместимость с Scipy

Эквивалентно scipy.special.xlog1py

© 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/xlog1py

Spec-Zone.ru

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