Returns a view of input as a complex tensor. For an input complex
tensor of size \(m1, m2, \dots, mi, 2\), this function returns a
new complex tensor of size \(m1, m2, \dots, mi\) where the last
dimension of the input tensor is expected to represent the real and imaginary
components of complex numbers.