计算 x 元素的反双曲正切。
用法
tf.math.atanh(
x, name=None
)参数
-
x一个Tensor。必须是以下类型之一:bfloat16,half,float32,float64,complex64,complex128。 -
name操作的名称(可选)。
返回
-
一个
Tensor。具有与x相同的类型。
给定输入张量,此函数计算张量中每个元素的反双曲正切。输入范围为 [-1,1] ,输出范围为 [-inf, inf] 。如果输入为 -1 ,则输出为 -inf ,如果输入为 1 ,则输出为 inf 。超出范围的值将以nan 作为输出。
x = tf.constant([-float("inf"), -1, -0.5, 1, 0, 0.5, 10, float("inf")])
tf.math.atanh(x) ==> [nan -inf -0.54930615 inf 0. 0.54930615 nan nan]
相关用法
- Python tf.math.atan用法及代码示例
- Python tf.math.atan2用法及代码示例
- Python tf.math.acosh用法及代码示例
- Python tf.math.accumulate_n用法及代码示例
- Python tf.math.angle用法及代码示例
- Python tf.math.add_n用法及代码示例
- Python tf.math.acos用法及代码示例
- Python tf.math.argmax用法及代码示例
- Python tf.math.argmin用法及代码示例
- Python tf.math.add用法及代码示例
- Python tf.math.asin用法及代码示例
- Python tf.math.asinh用法及代码示例
- Python tf.math.abs用法及代码示例
- Python tf.math.special.fresnel_cos用法及代码示例
- Python tf.math.polyval用法及代码示例
- Python tf.math.is_finite用法及代码示例
- Python tf.math.special.bessel_k0e用法及代码示例
- Python tf.math.invert_permutation用法及代码示例
- Python tf.math.segment_prod用法及代码示例
- Python tf.math.bincount用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.math.atanh。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
