Skip to content

Commit fdb4840

Browse files
committed
use torch from docker image
1 parent a8fe7aa commit fdb4840

File tree

1 file changed

+2
-25
lines changed

1 file changed

+2
-25
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@ jobs:
149149
image: pytorch/pytorch:1.9.0-cuda10.2-cudnn7-devel
150150
env:
151151
FORCE_CUDA: 1
152-
strategy:
153-
matrix:
154-
torch: [1.9.0+cu102]
155-
include:
156-
- torch: 1.9.0+cu102
157-
torch_version: torch1.9
158-
torchvision: 0.10.0+cu102
159152
steps:
160153
- uses: actions/checkout@v2
161154
- name: Install system dependencies
@@ -164,14 +157,10 @@ jobs:
164157
apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev
165158
apt-get clean
166159
rm -rf /var/lib/apt/lists/*
167-
- name: Install PyTorch
168-
run: |
169-
python -V
170-
python -m pip install --upgrade pip
171-
python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
172160
- name: Install dependencies
173161
run: |
174162
python -V
163+
python -m pip show torch torchvision
175164
export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
176165
python -m pip install openmim
177166
python -m pip install -r requirements.txt
@@ -204,13 +193,6 @@ jobs:
204193
runs-on: ubuntu-20.04
205194
container:
206195
image: pytorch/pytorch:1.12.0-cuda11.3-cudnn8-devel
207-
strategy:
208-
matrix:
209-
torch: [1.12.0+cu113]
210-
include:
211-
- torch: 1.12.0+cu113
212-
torch_version: torch1.12
213-
torchvision: 0.13.0+cu113
214196
steps:
215197
- uses: actions/checkout@v2
216198
- name: Install system dependencies
@@ -219,15 +201,10 @@ jobs:
219201
apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev
220202
apt-get clean
221203
rm -rf /var/lib/apt/lists/*
222-
- name: Install PyTorch
223-
run: |
224-
python -V
225-
python -m pip list
226-
python -m pip install --upgrade pip
227-
python -m pip install --no-cache-dir torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
228204
- name: Install dependencies
229205
run: |
230206
python -V
207+
python -m pip show torch torchvision
231208
export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
232209
python -m pip install --no-cache-dir openmim
233210
python -m pip install --no-cache-dir -r requirements.txt

0 commit comments

Comments
 (0)