تدفق التوتر:: العمليات:: الخبرة

#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 كمثال. ه^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