pin pytorch to a specific commit
🐛 Bug
When we build pytorch/xla, we pull in pytorch at head. This means the behavior of the build is not deterministic. This is bad for releases and bug repros.
We should pin pytorch to a specific commit, similarly to how we pin OpenXLA.
I am bothered by this issue for a while. it will be good if pytorch/xla can pin to a specific pytorch and xla version. is there any existing design or plan to do this? if not, i can take a deeper look at this issue.
Thanks, @iwknow . We already pin openxla to a specific version via bazel http_archive. See the WORKSPACE file for details.
Currently we hard-code the dependency on pytorch by cloning it at