tensorflow :: ops :: Tanh
#include <math_ops.h>
Menghitung tangen hiperbolik x
elemen.
Ringkasan
Diberikan sebuah input tensor, fungsi ini menghitung tangen hiperbolik setiap elemen dalam tensor. Rentang masukan adalah [-inf, inf]
dan kisaran keluaran adalah [-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.]
Argumen:
- scope: Objek Scope
Pengembalian:
-
Output
: Tensor y.
Pembuat dan Penghancur | |
---|---|
Tanh (const :: tensorflow::Scope & scope, :: tensorflow::Input x) |
Atribut publik | |
---|---|
operation | |
y |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atribut publik
operasi
Operation operation
y
::tensorflow::Output y
Fungsi publik
Tanh
Tanh( const ::tensorflow::Scope & scope, ::tensorflow::Input x )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const