Revert "torchdynamo support modules() for nn_module (#88023)"
This reverts commit eb91e8a534f94127a6d744543f2080a44bca9e57.
Reverted https://github.com/pytorch/pytorch/pull/88023 on behalf of https://github.com/mehtanirav due to [Internal breakages](https://www.internalfb.com/intern/sandcastle/job/13510799692855066/insights)