Skip to content

Commit

Permalink
Fix crash when PYTORCH_VERSION is not defined (pytorch#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jun 27, 2024
1 parent 6cab4c8 commit 1c7c390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packaging/pre_build_script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ set -eux
echo "This script is run before building torchao binaries"

python -m pip install --upgrade pip
if [ -z "$PYTORCH_VERSION" ]; then
if [ -z ${PYTORCH_VERSION:-} ]; then
PYTORCH_DEP="torch"
else
PYTORCH_DEP="torch==$PYTORCH_VERSION"
Expand Down

0 comments on commit 1c7c390

Please sign in to comment.