Revert "[export] Change runtime asserts to using assert_scalar (#119608)"
This reverts commit f4d641ba2fb11fca2ba47f0c425d8a4a1adbffb6.
Reverted https://github.com/pytorch/pytorch/pull/119608 on behalf of https://github.com/huydhn due to This break ONNX trunk job https://hud.pytorch.org/pytorch/pytorch/commit/65fd8b67304131c8b5c9d2a10b3cf2a7647450df ([comment](https://github.com/pytorch/pytorch/pull/119608#issuecomment-1947436402))