Skip to content

Commit 2e4c2a1

Browse files
seemetheresoumith
authored andcommitted
packaging: Install correct version of pytorch for pip (#412)
CUDA_SUFFIX was still being used here when it should've been swapped out for PYTORCH_VERSION_SUFFIX, which is what's being used for conda below. Signed-off-by: Eli Uriegas <[email protected]> (cherry picked from commit 009b115) Signed-off-by: Eli Uriegas <[email protected]>
1 parent c456524 commit 2e4c2a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packaging/pkg_helpers.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ setup_pip_pytorch_version() {
168168
export PYTORCH_VERSION="$(pip show torch | grep ^Version: | sed 's/Version: *//')"
169169
fi
170170
else
171-
pip_install "torch==$PYTORCH_VERSION$CUDA_SUFFIX" \
171+
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
172172
-f https://download.pytorch.org/whl/torch_stable.html \
173173
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
174174
fi
@@ -177,7 +177,7 @@ setup_pip_pytorch_version() {
177177
# Fill PYTORCH_VERSION with the latest conda nightly version, and
178178
# CONDA_CHANNEL_FLAGS with appropriate flags to retrieve these versions
179179
#
180-
# You MUST have populated CUDA_SUFFIX before hand.
180+
# You MUST have populated PYTORCH_VERSION_SUFFIX before hand.
181181
setup_conda_pytorch_constraint() {
182182
if [[ -z "$PYTORCH_VERSION" ]]; then
183183
export CONDA_CHANNEL_FLAGS="-c pytorch-nightly"

0 commit comments

Comments
 (0)