@@ -13,25 +13,17 @@ if [[ ${TORCH_ONLY} == 'true' ]]; then
1313 TEST_SUFFIX=" --package torchonly"
1414fi
1515
16- if [[ ${MATRIX_CHANNEL} != " release" ]]; then
17- # Installing poetry from our custom repo. We need to configure it before use and disable authentication
18- export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
19- poetry source add --priority=explicit domains " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} "
20- poetry source add --priority=supplemental pytorch-channel " https://download.pytorch.org/whl/${MATRIX_CHANNEL} "
21- poetry source add --priority=supplemental pytorch " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
22- poetry --quiet add --source pytorch torch
16+ RELEASE_SUFFIX=" "
17+ # if RELESE version is passed as parameter - install speific version
18+ if [[ ! -z ${RELEASE_VERSION} ]]; then
19+ RELEASE_SUFFIX=" @${RELEASE_VERSION} "
20+ fi
21+
2322
24- if [[ ${TORCH_ONLY} != ' true' ]]; then
25- poetry --quiet add --source domains torchvision torchaudio
26- fi
23+ if [[ ${TORCH_ONLY} == ' true' ]]; then
24+ poetry --quiet add torch${RELEASE_SUFFIX}
2725else
28- export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
29- poetry source add --priority=explicit pytorch " https://download.pytorch.org/whl/${MATRIX_DESIRED_CUDA} "
30- if [[ ${TORCH_ONLY} == ' true' ]]; then
31- poetry --quiet add torch
32- else
33- poetry --quiet add --source pytorch torch torchaudio torchvision
34- fi
26+ poetry --quiet add torch${RELEASE_SUFFIX} torchaudio torchvision
3527fi
3628
3729python ../test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
0 commit comments