updated create input and add test methods and added a whitelist for complex (#37835)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/37835
Test Plan: Imported from OSS
Differential Revision: D21434429
Pulled By: anjali411
fbshipit-source-id: 2590dfbae3e60c1a1019c96fe1c0b177ae088ccf