Skip to content

Commit

Permalink
try torch==2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mshr-h committed Jan 31, 2024
1 parent 50af760 commit b078e7d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ jobs:
python-version: ['3.8', '3.9', '3.10', '3.11']
env:
TVM_VERSION_TAG: v0.15.0
PYTORCH_VERSION: 2.2.0

steps:
- uses: actions/checkout@v4
Expand All @@ -44,12 +45,12 @@ jobs:
# The GitHub editor is 127 chars wide
flake8 . --count --max-complexity=10 --max-line-length=127 --statistics
# PyTorch CPU for Linux has different pip syntax wrt Win and Mac.
- name: Install torch-2.0.0+cpu if linux
- name: Install torch-${{ env.PYTORCH_VERSION }}+cpu if linux
if: ${{ startsWith(matrix.os, 'ubuntu') }}
run: python -m pip install torch==2.0.0 --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install torch-2.0.0+cpu if not linux
run: python -m pip install torch==${{ env.PYTORCH_VERSION }} --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install torch-${{ env.PYTORCH_VERSION }}+cpu if not linux
if: ${{ !startsWith(matrix.os, 'ubuntu') }}
run: python -m pip install torch==2.0.0
run: python -m pip install torch==${{ env.PYTORCH_VERSION }}
- name: Install basic dependencies
run: |
python -m pip install -e .[tests] -f https://download.pytorch.org/whl/torch_stable.html
Expand Down

0 comments on commit b078e7d

Please sign in to comment.