Revert "Error when jit.trace/script is used with torch.compile (#91681)"
This reverts commit fa92b6a7b0e12779baa92d0d11e4161a130fea58.
Reverted https://github.com/pytorch/pytorch/pull/91681 on behalf of https://github.com/izaitsevfb due to Breaks internal tests, see T147501786