Fix bug in toComplexWithDefault (#43841)
Summary:
I don't think this method is used anywhere, so I don't know how to test it. But the diff should justify itself.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43841
Reviewed By: mruberry
Differential Revision: D24696505
Pulled By: anjali411
fbshipit-source-id: f2a249ae2e078b16fa11941a048b7d093e60241b