tensorflow :: ops :: Exp

#include <math_ops.h>

Menghitung eksponensial dari elemen x.

Ringkasan

\(y = e^x\).

Fungsi ini menghitung eksponensial setiap elemen dalam tensor input. yaitu exp(x) atau e^(x) , di mana x adalah tensor masukan. e menunjukkan bilangan Euler dan kira-kira sama dengan 2,718281. Output positif untuk input nyata apa pun.

  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)
  

Untuk bilangan kompleks, nilai eksponensial dihitung sebagai berikut:

  e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
  

Mari kita pertimbangkan bilangan kompleks 1 + 1j sebagai contoh. 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
  

Argumen:

Pengembalian:

Pembuat dan Penghancur

Exp (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

Atribut publik

operation
y

Fungsi publik

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Atribut publik

operasi

Operation operation

y

::tensorflow::Output y

Fungsi publik

Exp

 Exp(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const