File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,12 @@ jobs:
7575 echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/cu${cuda_ver}/torch_stable.html"
7676 scope=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(fabric="lightning_fabric").get(n, n))')
7777 echo "##vso[task.setvariable variable=COVERAGE_SOURCE]$scope"
78+ python_ver=$(python -c "import sys; print(f'{sys.version_info.major}{sys.version_info.minor}')")
79+ echo "##vso[task.setvariable variable=PYTHON_VERSION_MM]python_ver"
7880 displayName: "set env. vars"
7981 - bash : |
8082 echo "##vso[task.setvariable variable=TORCH_URL]https://download.pytorch.org/whl/test/cu${CUDA_VERSION_MM}"
81- echo "##vso[task.setvariable variable=TORCHVISION_URL]https://download.pytorch.org/whl/test/cu124/torchvision-0.19.0%2Bcu124-cp311-cp311 -linux_x86_64.whl"
83+ echo "##vso[task.setvariable variable=TORCHVISION_URL]https://download.pytorch.org/whl/test/cu124/torchvision-0.19.0%2Bcu124-cp${PYTHON_VERSION_MM}-cp${PYTHON_VERSION_MM} -linux_x86_64.whl"
8284 condition: endsWith(variables['Agent.JobName'], 'future')
8385 displayName: "set env. vars 4 future"
8486
You can’t perform that action at this time.
0 commit comments