torch.view_as_real
- torch.view_as_real(input) → Tensor
Returns a view of
inputas a real tensor. For an input complex tensor ofsize, this function returns a new real tensor of size , where the last dimension of size 2 represents the real and imaginary components of complex numbers.