Generalize update-xla-commit-hash and setup torchdynamo hash
The hash isn't used for anything yet.
Signed-off-by: Edward Z. Yang <ezyangfb.com>
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79042
Approved by: https://github.com/seemethere, https://github.com/anijain2305