tensorflow::ops::Lgamma
#include <math_ops.h>
Вычисляет логарифм абсолютного значения Gamma(x) поэлементно.
Краткое описание
Для положительных чисел эта функция вычисляет log((input - 1)!) для каждого элемента тензора. lgamma(5) = log((5-1)!) = log(4!) = log(24) = 3.1780539
Пример:
x = tf.constant([0, 0.5, 1, 4.5, -4, -5.6]) tf.math.lgamma(x) ==> [inf, 0.5723649, 0., 2.4537368, inf, -4.6477685]
Аргументы:
- scope: объект Scope
Возвращает:
-
Output: тензор y.
| Конструкторы и деструкторы | |
|---|---|
Lgamma(const ::tensorflow::Scope & scope, ::tensorflow::Input x) |
| Открытые атрибуты | |
|---|---|
operation | |
y | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Открытые атрибуты
operation
Operation operation
y
::tensorflow::Output y
Открытые функции
Lgamma
Lgamma( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 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/cc/class/tensorflow/ops/lgamma