tensorflow :: opérations :: Exp
#include <math_ops.h>
Calcule l'exponentielle de x élément par élément.
Résumé
\(y = e^x\).
Cette fonction calcule l'exponentielle de chaque élément du tenseur d'entrée. c'est-à-dire exp(x)
ou e^(x)
, où x
est le tenseur d'entrée. e
désigne le nombre d'Euler et est approximativement égal à 2,718281. La sortie est positive pour toute entrée réelle.
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)
Pour les nombres complexes, la valeur exponentielle est calculée comme suit:
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
Prenons comme exemple le nombre complexe 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
Arguments:
- scope: un objet Scope
Retour:
-
Output
: le tenseur y.
Constructeurs et destructeurs | |
---|---|
Exp (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Attributs publics | |
---|---|
operation | |
y |
Fonctions publiques | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Attributs publics
opération
Operation operation
y
::tensorflow::Output y
Fonctions publiques
Exp
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
nœud
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const