Tensorflow :: ops :: Exp
#include <math_ops.h>
Berechnet das Exponential von x elementweise.
Zusammenfassung
\(y = e^x\).
Diese Funktion berechnet das Exponential jedes Elements im Eingangstensor. dh exp(x)
oder e^(x)
, wobei x
der Eingangstensor ist. e
bezeichnet die Euler-Zahl und ist ungefähr gleich 2,718281. Die Ausgabe ist für jede echte Eingabe positiv.
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)
Für komplexe Zahlen wird der Exponentialwert wie folgt berechnet:
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
Betrachten wir als Beispiel die komplexe Zahl 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
Argumente:
- scope: Ein Scope- Objekt
Kehrt zurück:
-
Output
: Der y-Tensor.
Konstruktoren und Destruktoren | |
---|---|
Exp (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Öffentliche Attribute | |
---|---|
operation | |
y |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche Attribute
Operation
Operation operation
y
::tensorflow::Output y
Öffentliche Funktionen
Exp
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const