Skip to content

Commit

Permalink
fix(pytorch): cpu install command has changed
Browse files Browse the repository at this point in the history
  • Loading branch information
avouacr committed Oct 9, 2023
1 parent 162b108 commit 9412561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python-pytorch/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ USER root

RUN if ! [[ -z "${CUDA_VERSION}" ]]; then \
# CUDA support
pip install torch torchvision torchaudio; \
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118; \
else \
# CPU only
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118; \
pip3 install torch torchvision torchaudio; \
fi && \
# Fix permissions
chown -R ${USERNAME}:${GROUPNAME} ${HOME} ${MAMBA_DIR} && \
Expand Down

0 comments on commit 9412561

Please sign in to comment.