torch.view_as_complex
- torch.view_as_complex(input) → Tensor
Returns a view of
inputas a complex tensor. For an input complex tensor ofsize, this function returns a new complex tensor of where the last dimension of the input tensor is expected to represent the real and imaginary components of complex numbers.