返回複數的參數。
用法
tf.raw_ops.Angle(
input, Tout=tf.dtypes.float32, name=None
)
參數
-
input
一個Tensor
。必須是以下類型之一:complex64
、complex128
。 -
Tout
一個可選的tf.DType
來自:tf.float32, tf.float64
。默認為tf.float32
。 -
name
操作的名稱(可選)。
返回
-
Tensor
類型為Tout
。
給定一個張量input
複數,此操作返回類型的張量float
這是每個元素的參數input
.中的所有元素input
必須是複數形式 ,其中a是實部並且b是虛部。
此操作返回的參數格式為 。
例如:
# tensor 'input' is [-2.25 + 4.75j, 3.25 + 5.75j]
tf.angle(input) ==> [2.0132, 1.056]
numpy 兼容性
相當於 np.angle。
相關用法
- Python tf.raw_ops.Atan2用法及代碼示例
- Python tf.raw_ops.AddN用法及代碼示例
- Python tf.raw_ops.Atan用法及代碼示例
- Python tf.raw_ops.Asinh用法及代碼示例
- Python tf.raw_ops.Asin用法及代碼示例
- Python tf.raw_ops.Atanh用法及代碼示例
- 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.SegmentMean用法及代碼示例
- Python tf.raw_ops.Expm1用法及代碼示例
- Python tf.raw_ops.UniqueWithCounts用法及代碼示例
- Python tf.raw_ops.DecodeGif用法及代碼示例
- Python tf.raw_ops.Size用法及代碼示例
- Python tf.raw_ops.ScatterUpdate用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.Angle。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。