Type annotate `torch.nn.Module` ctor (#61334)
Summary:
Annotate generic types
Fix some type violations
Override `_modules` and `_parameters` in `Sequential`, `ModuleList`, `ModuleDict`, etc
Fixes https://github.com/pytorch/pytorch/issues/45497
Pull Request resolved: https://github.com/pytorch/pytorch/pull/61334
Reviewed By: albanD
Differential Revision: D29579533
Pulled By: malfet
fbshipit-source-id: 5cd8ca918b260ca35cfdd873dee8851d39d17de2