tensorflow::ops::Exp

#include <math_ops.h>

Menghitung eksponen dari x elemen demi elemen.

Ringkasan

\(y = e^x\).

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

  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:

Mengembalikan:

Konstruktor dan Destruktor

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

Pengalaman

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

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const