tensor akışı:: işlem:: Tanh
#include <math_ops.h> x hiperbolik tanjantını element bazında hesaplar.
Özet
Bir giriş tensörü verildiğinde, bu fonksiyon tensördeki her elemanın hiperbolik tanjantını hesaplar. Giriş aralığı [-inf, inf] ve çıkış aralığı [-1,1] 'dir.
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.]
Argümanlar:
- kapsam: Bir Kapsam nesnesi
İade:
-
Output: y tensörü.
Yapıcılar ve Yıkıcılar | |
|---|---|
Tanh (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Genel özellikler | |
|---|---|
operation | |
y | |
Kamu işlevleri | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Genel özellikler
operasyon
Operation operation
sen
::tensorflow::Output y
Kamu işlevleri
Tanh
Tanh( 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