Skip to content

Commit 2d81ef4

Browse files
committed
Only reininstall pytorch in gpu flavor
1 parent 361ad3f commit 2d81ef4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

gpu-flavor/Dockerfile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,12 @@ RUN \
152152
pip install --no-cache-dir onnxruntime-gpu==1.4.0 && \
153153
# Install pytorch gpu
154154
# uninstall cpu only packages via conda
155-
conda remove --force -y pytorch torchvision torchaudio cpuonly && \
155+
conda remove --force -y pytorch cpuonly && \
156156
# https://pytorch.org/get-started/locally/
157-
conda install -y pytorch torchvision torchaudio -c pytorch && \
157+
conda install -y pytorch -c pytorch && \
158+
# Install faiss gpu
159+
conda remove --force -y faiss-cpu && \
160+
conda install -y faiss-gpu -c pytorch && \
158161
# Update mxnet to gpu edition
159162
pip uninstall -y mxnet-mkl && \
160163
pip install --no-cache-dir mxnet-cu101mkl==1.6.0.post0 && \

0 commit comments

Comments
 (0)