Revert "direct runtime assertions (#111262)"
This reverts commit e6d9350d7f135b3e0f27a949853ae691021b51f6.
Reverted https://github.com/pytorch/pytorch/pull/111262 on behalf of https://github.com/jeanschmidt due to Breaking internal builds ([comment](https://github.com/pytorch/pytorch/pull/111262#issuecomment-1765881675))