@@ -191,7 +191,7 @@ setup_pip_pytorch_version() {
191
191
if [[ -z " $PYTORCH_VERSION " ]]; then
192
192
# Install latest prerelease version of torch, per our nightlies, consistent
193
193
# 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"
195
195
if [[ " $CUDA_VERSION " == " cpu" ]]; then
196
196
# CUDA and CPU are ABI compatible on the CPU-only parts, so strip
197
197
# in this case
@@ -212,13 +212,13 @@ setup_pip_pytorch_version() {
212
212
# You MUST have populated PYTORCH_VERSION_SUFFIX before hand.
213
213
setup_conda_pytorch_constraint () {
214
214
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"
216
216
PYTHON=" python"
217
217
# Check if we have python 3 instead and prefer that
218
218
if python3 --version > /dev/null 2> /dev/null; then
219
219
PYTHON=" python3"
220
220
fi
221
- export PYTORCH_VERSION=" $( conda search --json pytorch[channel= pytorch-${UPLOAD_CHANNEL} ] | \
221
+ export PYTORCH_VERSION=" $( conda search --json ' pytorch[channel=pytorch-test] ' | \
222
222
${PYTHON} -c " import os, sys, json, re; cuver = os.environ.get('CU_VERSION'); \
223
223
cuver_1 = cuver.replace('cu', 'cuda') if cuver != 'cpu' else cuver; \
224
224
cuver_2 = (cuver[:-1] + '.' + cuver[-1]).replace('cu', 'cuda') if cuver != 'cpu' else cuver; \
0 commit comments