返回复数的参数。
用法
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。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
