@@ -13,25 +13,19 @@ if [[ ${TORCH_ONLY} == 'true' ]]; then
13
13
TEST_SUFFIX=" --package torchonly"
14
14
fi
15
15
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
23
21
24
- if [[ ${TORCH_ONLY} != ' true' ]]; then
25
- poetry --quiet add --source domains torchvision torchaudio
26
- fi
22
+ # Installing poetry from our custom repo. We need to configure it before use and disable authentication
23
+ export PYTHON_KEYRING_BACKEND=keyring.backends.null.Keyring
24
+ poetry source add --priority=explicit pytorch " https://download.pytorch.org/whl/${MATRIX_DESIRED_CUDA} "
25
+ if [[ ${TORCH_ONLY} == ' true' ]]; then
26
+ poetry --quiet add torch${RELEASE_SUFFIX}
27
27
else
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
28
+ poetry --quiet add --source pytorch torch${RELEASE_SUFFIX} torchaudio torchvision
35
29
fi
36
30
37
31
python ../test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
0 commit comments