torch.pow
torch.pow(input, exponent, *, out=None) -> Tensor
Takes the power of each element in "input" with "exponent" and
   returns a tensor with the result.
"exponent" can be either a single "float" number or a Tensor with
   the same number of elements as "input".
When "exponent" is a scalar value, the operation applied is:
  \text{out}_i = x_i ^ \text{exponent}

When "exponent" is a tensor, the operation applied is:
  \text{out}_i = x_i ^ {\text{exponent}_i}

When "exponent" is a tensor, the shapes of "input" and "exponent"
   must be broadcastable.
Parameters:
      * input (Tensor) -- the input tensor.
  * **exponent** (*float** or **tensor*) -- the exponent value

Keyword Arguments:
      out (Tensor, optional) -- the output tensor.
Example:
  >>> a = torch.randn(4)
  >>> a
  tensor([ 0.4331,  1.2475,  0.6834, -0.2791])
  >>> torch.pow(a, 2)
  tensor([ 0.1875,  1.5561,  0.4670,  0.0779])
