計算一個值對另一個值的冪。
用法
tf.math.pow(
x, y, name=None
)參數
-
xTensor類型為float16、float32、float64、int32、int64、complex64或complex128。 -
yTensor類型為float16、float32、float64、int32、int64、complex64或complex128。 -
name操作的名稱(可選)。
返回
-
一個
Tensor。
給定張量 x 和張量 y ,此操作計算 x 和 y 中對應元素的 。例如:
x = tf.constant([[2, 2], [3, 3]])
y = tf.constant([[8, 16], [2, 3]])
tf.pow(x, y) # [[256, 65536], [9, 27]]
相關用法
- Python tf.math.polyval用法及代碼示例
- Python tf.math.special.fresnel_cos用法及代碼示例
- Python tf.math.is_finite用法及代碼示例
- Python tf.math.special.bessel_k0e用法及代碼示例
- Python tf.math.acosh用法及代碼示例
- 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用法及代碼示例
- Python tf.math.reduce_max用法及代碼示例
- Python tf.math.special.fresnel_sin用法及代碼示例
- Python tf.math.segment_mean用法及代碼示例
- Python tf.math.xlog1py用法及代碼示例
- Python tf.math.less_equal用法及代碼示例
- Python tf.math.reduce_min用法及代碼示例
- Python tf.math.log_sigmoid用法及代碼示例
- Python tf.math.count_nonzero用法及代碼示例
- Python tf.math.not_equal用法及代碼示例
- Python tf.math.cumulative_logsumexp用法及代碼示例
- Python tf.math.accumulate_n用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.math.pow。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
