逐元素計算 x 的三角反正切。
用法
tf.raw_ops.Atan(
x, name=None
)
參數
-
x
一個Tensor
。必須是以下類型之一:bfloat16
,half
,float32
,float64
,int8
,int16
,int32
,int64
,complex64
,complex128
。 -
name
操作的名稱(可選)。
返回
-
一個
Tensor
。具有與x
相同的類型。
tf.math.atan
操作返回 tf.math.tan
的倒數,因此如果 y = tf.math.tan(x)
那麽 x = tf.math.atan(y)
。
注意:tf.math.atan
的輸出將位於 tan 的可逆範圍內,即 (-pi/2, pi/2)。
例如:
# Note:[1.047, 0.785] ~= [(pi/3), (pi/4)]
x = tf.constant([1.047, 0.785])
y = tf.math.tan(x) # [1.731261, 0.99920404]
tf.math.atan(y) # [1.047, 0.785] = x
相關用法
- Python tf.raw_ops.Atan2用法及代碼示例
- Python tf.raw_ops.Atanh用法及代碼示例
- Python tf.raw_ops.AddN用法及代碼示例
- Python tf.raw_ops.Asinh用法及代碼示例
- Python tf.raw_ops.Angle用法及代碼示例
- Python tf.raw_ops.Asin用法及代碼示例
- Python tf.raw_ops.AssignVariableXlaConcatND用法及代碼示例
- Python tf.raw_ops.Acosh用法及代碼示例
- Python tf.raw_ops.ArgMax用法及代碼示例
- Python tf.raw_ops.ArgMin用法及代碼示例
- Python tf.raw_ops.AsString用法及代碼示例
- Python tf.raw_ops.TPUReplicatedInput用法及代碼示例
- Python tf.raw_ops.Bitcast用法及代碼示例
- Python tf.raw_ops.SelfAdjointEigV2用法及代碼示例
- Python tf.raw_ops.BatchMatMul用法及代碼示例
- Python tf.raw_ops.OneHot用法及代碼示例
- Python tf.raw_ops.ResourceScatterNdSub用法及代碼示例
- Python tf.raw_ops.ReadVariableXlaSplitND用法及代碼示例
- Python tf.raw_ops.GatherV2用法及代碼示例
- Python tf.raw_ops.Expm1用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.Atan。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。