返回複數(或實數)張量的元素參數。
用法
tf.math.angle(
input, name=None
)參數
-
input一個Tensor。必須是以下類型之一:float、double、complex64、complex128。 -
name操作的名稱(可選)。
返回
-
Tensor類型為float32或float64。
給定一個張量 input ,此操作返回一個類型為 float 的張量,它是 input 中每個元素的參數,被視為複數。
中的元素input被認為是形式的複數,其中a是實部並且b是虛部。如果input那麽是真的b根據定義為零。
此函數返回的參數格式為 。如果input 為實數,則返回全零張量。
例如:
input = tf.constant([-2.25 + 4.75j, 3.25 + 5.75j], dtype=tf.complex64)
tf.math.angle(input).numpy()
# ==> array([2.0131705, 1.056345 ], dtype=float32)
相關用法
- Python tf.math.acosh用法及代碼示例
- Python tf.math.accumulate_n用法及代碼示例
- Python tf.math.add_n用法及代碼示例
- Python tf.math.acos用法及代碼示例
- Python tf.math.argmax用法及代碼示例
- Python tf.math.atan用法及代碼示例
- Python tf.math.argmin用法及代碼示例
- Python tf.math.add用法及代碼示例
- Python tf.math.asin用法及代碼示例
- Python tf.math.asinh用法及代碼示例
- Python tf.math.abs用法及代碼示例
- Python tf.math.atan2用法及代碼示例
- Python tf.math.atanh用法及代碼示例
- Python tf.math.special.fresnel_cos用法及代碼示例
- 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用法及代碼示例
- Python tf.math.bessel_i0e用法及代碼示例
- Python tf.math.special.bessel_j0用法及代碼示例
- Python tf.math.unsorted_segment_min用法及代碼示例
- Python tf.math.conj用法及代碼示例
- Python tf.math.scalar_mul用法及代碼示例
- Python tf.math.zero_fraction用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.math.angle。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
