tensorflow::ops::Exp
#include <math_ops.h>x'in eleman bazında üssünü hesaplar.
Özet
\(y = e^x\).
Bu fonksiyon, giriş tensöründeki her elemanın üssünü hesaplar. Yani exp(x) veya e^(x) , burada x giriş tensörüdür. e Euler sayısını ifade eder ve yaklaşık olarak 2,718281'e eşittir. Çıktı, herhangi bir gerçek giriş için pozitiftir.
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)
Karmaşık sayılar için üslü değer aşağıdaki gibi hesaplanır:
e^(x+iy) = e^x * e^iy = e^x * (cos y + i sin y)
Örnek olarak 1+1j karmaşık sayısını ele alalım. 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
Argümanlar:
- kapsam: Bir Kapsam nesnesi
İadeler:
-
Output: Y tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
Exp (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Genel özellikler | |
|---|---|
operation | |
y | |
Kamusal işlevler | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel özellikler
operasyon
Operation operation
y
::tensorflow::Output y
Kamusal işlevler
Deneyim
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
düğüm
::tensorflow::Node * node() const
operatör::tensorflow::Giriş
operator::tensorflow::Input() const
operatör::tensorflow::Çıktı
operator::tensorflow::Output() const