Improve `ConcreteModuleType::dump()` (#29582)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/29582
Give it more info, fix a segfault
Test Plan: Imported from OSS
Differential Revision: D18435950
Pulled By: suo
fbshipit-source-id: 43c695ffe1f13f33df69c6e51caa531f8b993208