przepływ tensorowy:: ops:: Tanh
#include <math_ops.h> Oblicza tangens hiperboliczny x elementarnie.
Streszczenie
 Mając tensor wejściowy, funkcja ta oblicza tangens hiperboliczny każdego elementu tensora. Zakres wejściowy to [-inf, inf] , a zakres wyjściowy to [-1,1] . 
x = tf.constant([-float("inf"), -5, -0.5, 1, 1.2, 2, 3, float("inf")]) tf.math.tanh(x) ==> [-1. -0.99990916 -0.46211717 0.7615942 0.8336547 0.9640276 0.9950547 1.]
Argumenty:
- zakres: Obiekt Scope
Zwroty:
-  Output: tensor y.
| Konstruktory i destruktory | |
|---|---|
| Tanh (const :: tensorflow::Scope & scope, :: tensorflow::Input x) | 
| Atrybuty publiczne | |
|---|---|
| operation | |
| y | |
| Funkcje publiczne | |
|---|---|
| node () const | ::tensorflow::Node * | 
| operator::tensorflow::Input () const | |
| operator::tensorflow::Output () const | |
Atrybuty publiczne
działanie
Operation operation
y
::tensorflow::Output y
Funkcje publiczne
Tanh
Tanh( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const