用法
__rpow__(
x
)參數
-
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.Variable.__rmatmul__用法及代碼示例
- Python tf.Variable.__rsub__用法及代碼示例
- Python tf.Variable.__lt__用法及代碼示例
- Python tf.Variable.__pow__用法及代碼示例
- Python tf.Variable.__le__用法及代碼示例
- Python tf.Variable.__matmul__用法及代碼示例
- Python tf.Variable.__getitem__用法及代碼示例
- Python tf.Variable.__ge__用法及代碼示例
- Python tf.Variable.__gt__用法及代碼示例
- Python tf.Variable.__abs__用法及代碼示例
- Python tf.Variable.__sub__用法及代碼示例
- Python tf.Variable.initialized_value用法及代碼示例
- Python tf.Variable.ref用法及代碼示例
- Python tf.Variable.load用法及代碼示例
- Python tf.Variable.scatter_nd_add用法及代碼示例
- Python tf.Variable.eval用法及代碼示例
- Python tf.Variable.scatter_nd_sub用法及代碼示例
- Python tf.Variable.scatter_nd_update用法及代碼示例
- Python tf.Variable用法及代碼示例
- Python tf.compat.v1.distributions.Multinomial.stddev用法及代碼示例
- Python tf.compat.v1.distribute.MirroredStrategy.experimental_distribute_dataset用法及代碼示例
- Python tf.compat.v1.data.TFRecordDataset.interleave用法及代碼示例
- Python tf.summary.scalar用法及代碼示例
- Python tf.linalg.LinearOperatorFullMatrix.matvec用法及代碼示例
- Python tf.linalg.LinearOperatorToeplitz.solve用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.Variable.__rpow__。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
