Complex tensor formed from a leading axis of real and imaginary parts.
Inverse of as_real().
- Parameters:
input (torch.Tensor) – Real tensor whose leading axis has length two.
- Returns:
Complex tensor of shape input.shape[1:].
- Return type:
torch.Tensor