テンソルフロー::作戦::経験値

#include <math_ops.h>

x の指数を要素ごとに計算します。

まとめ

\(y = e^x\)。

この関数は、入力テンソルのすべての要素の指数を計算します。つまり、 exp(x)またはe^(x)です。ここで、 xは入力テンソルです。 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
  

引数:

戻り値:

コンストラクターとデストラクター

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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const