torch.view_as_complex fails with segfault for a zero dimensional tensor (#44175)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/44061
Pull Request resolved: https://github.com/pytorch/pytorch/pull/44175
Reviewed By: colesbury
Differential Revision: D23628103
Pulled By: anjali411
fbshipit-source-id: 6f70b5824150121a1617c0757499832923ae02b5