計算一個值對另一個值的冪。
用法
tf.raw_ops.Pow(
x, y, name=None
)參數
-
x一個Tensor。必須是以下類型之一:bfloat16,float32,half,float64,int8,int16,int32,int64,complex64,complex128。 -
y一個Tensor。必須與x具有相同的類型。 -
name操作的名稱(可選)。
返回
-
一個
Tensor。具有與x相同的類型。
給定張量 x 和張量 y ,此操作計算 x 和 y 中對應元素的 。例如:
# tensor 'x' is [[2, 2]], [3, 3]]
# tensor 'y' is [[8, 16], [2, 3]]
tf.pow(x, y) ==> [[256, 65536], [9, 27]]
相關用法
- Python tf.raw_ops.ParallelConcat用法及代碼示例
- Python tf.raw_ops.Pad用法及代碼示例
- Python tf.raw_ops.ParseSequenceExampleV2用法及代碼示例
- Python tf.raw_ops.ParallelDynamicStitch用法及代碼示例
- Python tf.raw_ops.PadV2用法及代碼示例
- Python tf.raw_ops.Pack用法及代碼示例
- 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用法及代碼示例
- Python tf.raw_ops.ScatterNdUpdate用法及代碼示例
- Python tf.raw_ops.BatchToSpaceND用法及代碼示例
- Python tf.raw_ops.TensorScatterMax用法及代碼示例
- Python tf.raw_ops.DepthToSpace用法及代碼示例
- Python tf.raw_ops.QuantizeV2用法及代碼示例
注:本文由純淨天空篩選整理自tensorflow.org大神的英文原創作品 tf.raw_ops.Pow。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。
