Unverified Commit ba077e21 authored by DaniAndTheWeb's avatar DaniAndTheWeb Committed by GitHub

Fix TORCH_COMMAND check

parent 2e172cf8
...@@ -168,7 +168,7 @@ else ...@@ -168,7 +168,7 @@ else
gpu_info=$(lspci | grep VGA) gpu_info=$(lspci | grep VGA)
if echo "$gpu_info" | grep -q "AMD" if echo "$gpu_info" | grep -q "AMD"
then then
if [ -z ${TORCH_COMMAND+x} ] if [[ -z "${TORCH_COMMAND}" ]]
then then
export TORCH_COMMAND="pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2" export TORCH_COMMAND="pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/rocm5.2"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment