tensorflow:: אופס:: 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
  

טיעונים:

  • scope: אובייקט Scope

החזרות:

בנאים והורסים

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

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

צוֹמֶת

::tensorflow::Node * node() const 

מפעיל::tensorflow::קלט

 operator::tensorflow::Input() const 

אופרטור::tensorflow::פלט

 operator::tensorflow::Output() const