@@ -72,22 +72,20 @@ jobs:
72
72
pip install requests
73
73
if [[ ${{ inputs.pytorch }} == 'distributed_2.8' ]]; then
74
74
git clone https://github.com/daisyden/pytorch.git pytorch
75
- cd pytorch && git checkout $(echo ${{ inputs.pytorch }})
76
- git submodule sync && git submodule update --init --recursive
77
75
else
78
76
git clone https://github.com/pytorch/pytorch pytorch
79
- cd pytorch && git checkout $(echo ${{ inputs.pytorch }})
80
- # apply PRs for stock pytorch
81
- python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
82
- git status && git show -s
83
- git submodule sync && git submodule update --init --recursive
84
- if [[ ${{ inputs.keep_torch_xpu_ops }} == 'true' ]]; then
85
- echo "Don't replace torch-xpu-ops!"
86
- else
87
- rm -rf third_party/torch-xpu-ops && cp -r ../torch-xpu-ops third_party/
88
- # Workaround for torch-xpu-ops ci test
89
- sed -i "s/checkout --quiet \${TORCH_XPU_OPS_COMMIT}/log -n 1/g" caffe2/CMakeLists.txt
90
- fi
77
+ fi
78
+ cd pytorch && git checkout $(echo ${{ inputs. pytorch }})
79
+ # apply PRs for stock pytorch
80
+ python ../torch-xpu-ops/.github/scripts/apply_torch_pr.py
81
+ git status && git show -s
82
+ git submodule sync && git submodule update --init --recursive
83
+ if [[ ${{ inputs.keep_torch_xpu_ops }} == 'true' ]]; then
84
+ echo "Don't replace torch-xpu-ops!"
85
+ else
86
+ rm -rf third_party/torch-xpu-ops && cp -r ../ torch-xpu-ops third_party/
87
+ # Workaround for torch-xpu-ops ci test
88
+ sed -i "s/checkout --quiet \${TORCH_XPU_OPS_COMMIT}/log -n 1/g" caffe2/CMakeLists.txt
91
89
fi
92
90
- name : Build Pytorch XPU
93
91
run : |
0 commit comments