flux tensoriel : : opérations : : Exp.

#include <math_ops.h>

Calcule l'exponentielle de x 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)
  

Considérons le nombre complexe 1+1j comme exemple. 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:

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

oui

::tensorflow::Output y

Fonctions publiques

Exp.

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

nœud

::tensorflow::Node * node() const 

opérateur :: tensorflow :: Entrée

 operator::tensorflow::Input() const 

opérateur :: tensorflow :: Sortie

 operator::tensorflow::Output() const