Move NewModuleTest and NewCriterionTest from test_nn.py to common_nn.py (#35189)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/35189
Test Plan: Imported from OSS
Differential Revision: D20588197
Pulled By: yf225
fbshipit-source-id: 5a28159b653895678c250cbc0c1ddd51bc7a3123