Skip to content

Commit f15f4e8

Browse files
authored
Set correct upload channel (#6744)
1 parent 531a2ea commit f15f4e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packaging/pkg_helpers.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ setup_pip_pytorch_version() {
191191
if [[ -z "$PYTORCH_VERSION" ]]; then
192192
# Install latest prerelease version of torch, per our nightlies, consistent
193193
# with the requested cuda version
194-
pip_install --pre torch -f "https://download.pytorch.org/whl/${UPLOAD_CHANNEL}/${WHEEL_DIR}torch_${UPLOAD_CHANNEL}.html"
194+
pip_install --pre torch -f "https://download.pytorch.org/whl/test/${WHEEL_DIR}torch_test.html"
195195
if [[ "$CUDA_VERSION" == "cpu" ]]; then
196196
# CUDA and CPU are ABI compatible on the CPU-only parts, so strip
197197
# in this case
@@ -212,13 +212,13 @@ setup_pip_pytorch_version() {
212212
# You MUST have populated PYTORCH_VERSION_SUFFIX before hand.
213213
setup_conda_pytorch_constraint() {
214214
if [[ -z "$PYTORCH_VERSION" ]]; then
215-
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-${UPLOAD_CHANNEL} -c pytorch"
215+
export CONDA_CHANNEL_FLAGS="${CONDA_CHANNEL_FLAGS} -c pytorch-test -c pytorch"
216216
PYTHON="python"
217217
# Check if we have python 3 instead and prefer that
218218
if python3 --version >/dev/null 2>/dev/null; then
219219
PYTHON="python3"
220220
fi
221-
export PYTORCH_VERSION="$(conda search --json pytorch[channel=pytorch-${UPLOAD_CHANNEL}] | \
221+
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-test]' | \
222222
${PYTHON} -c "import os, sys, json, re; cuver = os.environ.get('CU_VERSION'); \
223223
cuver_1 = cuver.replace('cu', 'cuda') if cuver != 'cpu' else cuver; \
224224
cuver_2 = (cuver[:-1] + '.' + cuver[-1]).replace('cu', 'cuda') if cuver != 'cpu' else cuver; \

0 commit comments

Comments
 (0)