tensorflow::ops::Exp
#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: объект 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 operation
y
::tensorflow::Output y
Открытые функции
Exp
Exp( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/exp