Returns a view of input as a real tensor. For an input complex tensor of sizem1,m2,…,mi, this function returns a new real tensor of size m1,m2,…,mi,2, where the last dimension of size 2 represents the real and imaginary components of complex numbers.
Warning
torch_view_as_real() is only supported for tensors with complex dtypes.