tensorflow:: ops:: Exp

#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

י

::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