torch.Tensor.float_power(exponent)
Paddle 无此 API,需要组合实现。
# PyTorch 写法 y = x.float_power(y) # Paddle 写法 y = x.cast(paddle.float64).pow(y)