Skip to content

Commit 9232134

Browse files
authored
[CI] Update PyTorch in CI image to 1.5.1 (dmlc#1808)
* test * Revert "test" This reverts commit be555b0. * change
1 parent cda0abf commit 9232134

File tree

8 files changed

+34
-26
lines changed

8 files changed

+34
-26
lines changed

docker/Dockerfile.ci_cpu

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ RUN bash /install/ubuntu_install_conda.sh
1717
ENV CONDA_ALWAYS_YES="true"
1818

1919
COPY install/conda_env/torch_cpu.yml /install/conda_env/torch_cpu.yml
20+
COPY install/conda_env/torch_cpu_pip.txt /install/conda_env/torch_cpu_pip.txt
2021
RUN ["/bin/bash", "-i", "-c", "conda env create -f /install/conda_env/torch_cpu.yml"]
2122

2223
COPY install/conda_env/tensorflow_cpu.yml /install/conda_env/tensorflow_cpu.yml

docker/Dockerfile.ci_gpu

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ RUN bash /install/ubuntu_install_conda.sh
1616
ENV CONDA_ALWAYS_YES="true"
1717

1818
COPY install/conda_env/torch_gpu.yml /install/conda_env/torch_gpu.yml
19+
COPY install/conda_env/torch_gpu_pip.txt /install/conda_env/torch_gpu_pip.txt
1920
RUN ["/bin/bash", "-i", "-c", "conda env create -f /install/conda_env/torch_gpu.yml"]
2021

2122
COPY install/conda_env/tensorflow_gpu.yml /install/conda_env/tensorflow_gpu.yml

docker/install/conda_env/mxnet_cpu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dependencies:
33
- python=3.6.9
44
- pip
55
- pip:
6-
- mxnet
6+
- mxnet==1.6.0
77
- pytest
88
- nose
99
- numpy

docker/install/conda_env/mxnet_gpu.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dependencies:
33
- python=3.6.9
44
- pip
55
- pip:
6-
- mxnet-cu101
6+
- mxnet-cu101==1.6.0
77
- pytest
88
- nose
99
- numpy

docker/install/conda_env/torch_cpu.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,5 @@ dependencies:
33
- python=3.6.9
44
- pip
55
- pip:
6-
- torch
7-
- torchvision
8-
- pytest
9-
- nose
10-
- numpy
11-
- cython
12-
- scipy
13-
- networkx
14-
- matplotlib
15-
- nltk
16-
- requests[security]
17-
- tqdm
6+
- --find-links https://download.pytorch.org/whl/torch_stable.html
7+
- --requirement torch_cpu_pip.txt
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
2+
torch==1.5.1+cpu
3+
torchvision==0.6.1+cpu
4+
pytest
5+
nose
6+
numpy
7+
cython
8+
scipy
9+
networkx
10+
matplotlib
11+
nltk
12+
requests[security]
13+
tqdm

docker/install/conda_env/torch_gpu.yml

+2-12
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,5 @@ dependencies:
33
- python=3.6.9
44
- pip
55
- pip:
6-
- torch
7-
- torchvision
8-
- pytest
9-
- nose
10-
- numpy
11-
- cython
12-
- scipy
13-
- networkx
14-
- matplotlib
15-
- nltk
16-
- requests[security]
17-
- tqdm
6+
- --find-links https://download.pytorch.org/whl/torch_stable.html
7+
- --requirement torch_gpu_pip.txt
+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
--find-links https://download.pytorch.org/whl/torch_stable.html
2+
torch==1.5.1+cu101
3+
torchvision==0.6.1+cu101
4+
pytest
5+
nose
6+
numpy
7+
cython
8+
scipy
9+
networkx
10+
matplotlib
11+
nltk
12+
requests[security]
13+
tqdm

0 commit comments

Comments
 (0)