tensorflow:: ops:: Lgamma
#include <math_ops.h> Gamma(x)の絶対値の対数を要素ごとに計算します。
まとめ
正の数の場合、この関数はテンソルの各要素に対して log((入力 - 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]
議論:
- スコープ:スコープオブジェクト
返品:
-
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
y
::tensorflow::Output y
公的機能
Lgamma
Lgamma( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
ノード
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const