tf.nn.tanh
tf.tanh
tf.tanh( x, name=None )
Defined in tensorflow/python/ops/math_ops.py
.
See the guide: Neural Network > Activation Functions
Computes hyperbolic tangent of x
element-wise.
x
: A Tensor or SparseTensor with type float16
, float32
, double
, complex64
, or complex128
.name
: A name for the operation (optional).A Tensor or SparseTensor respectively with the same type as x
.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/tanh