torch.polar
torch.polar(abs, angle, *, out=None) -> Tensor
Constructs a complex tensor whose elements are Cartesian
   coordinates corresponding to the polar coordinates with absolute
   value "abs" and angle "angle".
  \text{out} = \text{abs} \cdot \cos(\text{angle}) + \text{abs}
  \cdot \sin(\text{angle}) \cdot j

Note:
 *torch.polar* is similar to std::polar and does not compute the
 polar decomposition of a complex tensor like Python's
 *cmath.polar* and SciPy's *linalg.polar* do. The behavior of this
 function is undefined if *abs* is negative or NaN, or if *angle*
 is infinite.

Parameters:
      * abs (Tensor) -- The absolute value the complex tensor.
        Must be float or double.
  * **angle** (*Tensor*) -- The angle of the complex tensor. Must
    be same dtype as "abs".

Keyword Arguments:
      out (Tensor) -- If the inputs are "torch.float32", must be
      "torch.complex64". If the inputs are "torch.float64", must be