switch computation to computationPtr (#79491)
Make `ExecuteComputation` take a pointer to `Computation` so it can be overridden and extended.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79491
Approved by: https://github.com/JackCaoG, https://github.com/wconstab