用法
__pow__(
y
)参数
-
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.compat.v1.Variable.__getitem__用法及代码示例
- Python tf.compat.v1.Variable.__rmatmul__用法及代码示例
- Python tf.compat.v1.Variable.__ge__用法及代码示例
- Python tf.compat.v1.Variable.__le__用法及代码示例
- Python tf.compat.v1.Variable.__rpow__用法及代码示例
- Python tf.compat.v1.Variable.__gt__用法及代码示例
- Python tf.compat.v1.Variable.__sub__用法及代码示例
- Python tf.compat.v1.Variable.__abs__用法及代码示例
- Python tf.compat.v1.Variable.__matmul__用法及代码示例
- Python tf.compat.v1.Variable.__lt__用法及代码示例
- Python tf.compat.v1.Variable.__rsub__用法及代码示例
- Python tf.compat.v1.Variable.eval用法及代码示例
- Python tf.compat.v1.Variable.initialized_value用法及代码示例
- Python tf.compat.v1.Variable.scatter_nd_update用法及代码示例
- Python tf.compat.v1.Variable.ref用法及代码示例
- Python tf.compat.v1.Variable.load用法及代码示例
- Python tf.compat.v1.Variable.scatter_nd_add用法及代码示例
- Python tf.compat.v1.Variable.scatter_nd_sub用法及代码示例
- Python tf.compat.v1.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.compat.v1.distributions.Bernoulli.cross_entropy用法及代码示例
- Python tf.compat.v1.train.FtrlOptimizer.compute_gradients用法及代码示例
- Python tf.compat.v1.layers.conv3d用法及代码示例
注:本文由纯净天空筛选整理自tensorflow.org大神的英文原创作品 tf.compat.v1.Variable.__pow__。非经特殊声明,原始代码版权归原作者所有,本译文未经允许或授权,请勿转载或复制。
