codecamp

TensorFlow函数:tf.tanh

tf.tanh函数

别名:

  • tf.nn.tanh
  • tf.tanh
tf .tanh ( 
    x , 
    name = None 
)

定义在:tensorflow/python/ops/math_ops.py.

请参阅指南:神经网络>激活函数

计算 x 元素的双曲正切值.

函数参数:

  • x:一个 Tensor 或具有 float16,float32,double,complex64 或 complex128 类型的 SparseTensor.
  • name:操作的名称(可选).

函数返回值:

tf.tanh 函数返回一个 Tensor 或 SparseTensor,它们分别与 x 具有相同的类型.

TensorFlow函数:tf.tan
TensorFlow函数:tf.tensordot
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定