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

y

::tensorflow::Output y

الوظائف العامة

خبرة

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

العقدة

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const