Revert "AOTAutograd: Go down inference path if no outputs require grad (#111011)"
This reverts commit ded5ee75ac51af1614cc79cd9c6f76524f10c3d8.
Reverted https://github.com/pytorch/pytorch/pull/111011 on behalf of https://github.com/kit1980 due to broke internal aotinductor tests with inference_mode ([comment](https://github.com/pytorch/pytorch/pull/111011#issuecomment-1762056233))