We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6cab4c8 commit 1c7c390Copy full SHA for 1c7c390
packaging/pre_build_script.sh
@@ -10,7 +10,7 @@ set -eux
10
echo "This script is run before building torchao binaries"
11
12
python -m pip install --upgrade pip
13
-if [ -z "$PYTORCH_VERSION" ]; then
+if [ -z ${PYTORCH_VERSION:-} ]; then
14
PYTORCH_DEP="torch"
15
else
16
PYTORCH_DEP="torch==$PYTORCH_VERSION"
0 commit comments