pow_

paddle. pow_ ( x: Tensor, y: float | int, name: str | None = None ) → Tensor [source]

Inplace version of pow API, the output Tensor will be inplaced with input x. Please refer to pow.

Parameters
  • x (Tensor) – The input Tensor. It can be any dimension. The data type should be bfloat16, float16, float32, float64, int32 or int64. alias: input.

  • y (float|int) – The exponent value. The data type should be float or int. alias: exponent.

  • name (str|None, optional) – Name for the operation (optional, default is None). For more information, please refer to api_guide_Name.

Returns

The output tensor with the same shape and dtype as x.

Return type

Tensor