텐서플로우:: 연산:: 경험치
#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를 예로 들어 보겠습니다. 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
논거:
- 범위: Scope 객체
보고:
-
Output: y 텐서.
생성자와 소멸자 | |
|---|---|
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
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
마디
::tensorflow::Node * node() const
연산자::텐서플로우::입력
operator::tensorflow::Input() const
연산자::텐서플로우::출력
operator::tensorflow::Output() const