Run C++ test_api binary directly in CI slow jobs (#101088)
Similar to ASAN, the test starts to timeout on slow jobs such as slow gradcheck, for example https://hud.pytorch.org/pytorch/pytorch/commit/30cecc0e111e8ec391a4aab0edb8413eda594e50. This needs to be investigated later, but it's of low priority as we can run test_api binary directly in the meantime in these jobs.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/101088
Approved by: https://github.com/clee2000