Migrate check_convert to c10::complex (#37875)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37875
Test Plan: Imported from OSS
Differential Revision: D21426480
Pulled By: anjali411
fbshipit-source-id: e9a474b4f7524aeeb6c63976ff7de9ac38ecefab