File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -74,14 +74,15 @@ install_pytorch_and_domains() {
74
74
local cached_torch_wheel=" https://gha-artifacts.s3.us-east-1.amazonaws.com/${torch_wheel_path} /${torch_wheel_name} "
75
75
# Cache PyTorch wheel is only needed on MacOS, Linux CI already has this as part
76
76
# of the Docker image
77
+ local torch_wheel_not_found=0
77
78
if [[ " ${system_name} " == " Darwin" ]]; then
78
- pip install " ${cached_torch_wheel} " || TORCH_WHEEL_NOT_FOUND =1
79
+ pip install " ${cached_torch_wheel} " || torch_wheel_not_found =1
79
80
else
80
- TORCH_WHEEL_NOT_FOUND =1
81
+ torch_wheel_not_found =1
81
82
fi
82
83
83
84
# Found no such wheel, we will build it from source then
84
- if [[ " ${TORCH_WHEEL_NOT_FOUND :- 0 } " == " 1" ]]; then
85
+ if [[ " ${torch_wheel_not_found } " == " 1" ]]; then
85
86
echo " No cached wheel found, continue with building PyTorch at ${TORCH_VERSION} "
86
87
87
88
git submodule update --init --recursive
You can’t perform that action at this time.
0 commit comments