Enable DataParallel to run zero input Module (#46565)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/46565
Test Plan: Imported from OSS
Reviewed By: mrshenli
Differential Revision: D24405275
Pulled By: glaringlee
fbshipit-source-id: a8baaf4cf227f7f21fc3b080a446f92f0effe18e