Skip to content

Commit a023307

Browse files
committed
TORCH_VER
1 parent 8c3329b commit a023307

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.lightning/workflows/fabric.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ run: |
4141
echo "Torch URL: ${TORCH_URL}"
4242
COVERAGE_SOURCE=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(fabric="lightning_fabric").get(n, n))')
4343
echo "collecting coverage for: ${COVERAGE_SOURCE}"
44+
TORCH_VER=$(python -c "import torch; print(torch.__version__.rsplit('.', 1)[0])")
4445
4546
if [ "${TORCH_VER}" == "2.1" ]; then
4647
echo "Set oldest versions"

.lightning/workflows/pytorch.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ run: |
4141
echo "Torch URL: ${TORCH_URL}"
4242
COVERAGE_SOURCE=$(python -c 'n = "$(PACKAGE_NAME)" ; print(dict(fabric="pytorch_lightning").get(n, n))')
4343
echo "collecting coverage for: ${COVERAGE_SOURCE}"
44+
TORCH_VER=$(python -c "import torch; print(torch.__version__.rsplit('.', 1)[0])")
4445
4546
if [ "${TORCH_VER}" == "2.1" ]; then
4647
recho "Set oldest versions"

0 commit comments

Comments
 (0)