Revert "[dynamo][api] Better support of torch.nn.Module (#88629)"
This reverts commit c83348597b195f2da1cca0e8318c878b104bce5d.
Reverted https://github.com/pytorch/pytorch/pull/88629 on behalf of https://github.com/anijain2305 due to job failing on master https://github.com/pytorch/pytorch/actions/runs/3449914495/jobs/5758267231