Google I/O'yu ayarladığınız için teşekkür ederiz. İsteğe bağlı olarak tüm oturumları görüntüleyin İsteğe bağlı olarak izleyin

tensorflow :: ops :: Tanh

#include <math_ops.h>

x elemanının hiperbolik tanjantını hesaplar.

Özet

Bir giriş tensörü verildiğinde, bu fonksiyon tensördeki her elemanın hiperbolik tanjantını hesaplar. Giriş aralığı [-inf, inf] ve çıktı aralığı [-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.]
  

Argümanlar:

  • kapsam: Bir Scope nesnesi

İadeler:

Yapıcılar ve Yıkıcılar

Tanh (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

Tanh

 Tanh(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

düğüm

::tensorflow::Node * node() const 

operator :: tensorflow :: Girdi

 operator::tensorflow::Input() const 

operator :: tensorflow :: Çıktı

 operator::tensorflow::Output() const