tensorflow:: ops:: Exp
#include <math_ops.h>xの指数関数を要素ごとに計算します。
まとめ
\(y = e^x\)。
この関数は、入力テンソルの各要素の指数関数を計算します。つまり、 exp(x)またはe^(x)計算します。ここで、 xは入力テンソルです。e eオイラー数を表し、約 2.718281 に等しくなります。任意の実数入力に対して、出力は正の値になります。
x = tf.constant(2.0) tf.math.exp(x) ==> 7.389056
x = tf.constant([2.0, 8.0]) tf.math.exp(x) ==> array([7.389056, 2980.958], dtype=float32)
複素数の場合、指数値は次のように計算されます。
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
例として、複素数 1+1j を考えてみましょう。 e^1 * (cos 1 + i sin 1) = 2.7182818284590 * (0.54030230586+0.8414709848j)
x = tf.constant(1 + 1j) tf.math.exp(x) ==> 1.4686939399158851+2.2873552871788423j
議論:
- スコープ:スコープオブジェクト
返品:
-
Output:yテンソル。
コンストラクターとデストラクタ | |
|---|---|
Exp (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
公的機能
経験
Exp( 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