Update nightly.yml to remove IMPORTER=1 in package validation. (#226)

* Update nightly.yml to fix wheel building issues.

* Update setup_venv.sh to only install torch+cu116 if IMPORTER=1 is set.
This commit is contained in:
Ean Garvey
2022-07-31 22:39:59 -05:00
committed by GitHub
parent 0ee515a7be
commit d556c0d6ef
2 changed files with 3 additions and 3 deletions

View File

@@ -108,7 +108,7 @@ fi
$PYTHON -m pip install -e . --extra-index-url https://download.pytorch.org/whl/nightly/cpu -f https://github.com/llvm/torch-mlir/releases -f https://github.com/${RUNTIME}/releases
if [[ $(uname -s) = 'Linux' ]]; then
if [[ $(uname -s) = 'Linux' && ! -z "${IMPORTER}" ]]; then
$PYTHON -m pip uninstall -y torch torchvision
$PYTHON -m pip install --pre torch torchvision --extra-index-url https://download.pytorch.org/whl/nightly/cu116
if [ $? -eq 0 ];then