Skip to content

Commit 9befc83

Browse files
committed
packaging: Add test channels to pytorch dependency resolution
Signed-off-by: Eli Uriegas <[email protected]>
1 parent 37e194f commit 9befc83

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packaging/pkg_helpers.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ setup_pip_pytorch_version() {
171171
else
172172
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
173173
-f https://download.pytorch.org/whl/torch_stable.html \
174+
-f https://download.pytorch.org/whl/test/torch_test.html \
174175
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
175176
fi
176177
}
@@ -184,7 +185,7 @@ setup_conda_pytorch_constraint() {
184185
export CONDA_CHANNEL_FLAGS="-c pytorch-nightly"
185186
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-nightly]' | python -c "import sys, json, re; print(re.sub(r'\\+.*$', '', json.load(sys.stdin)['pytorch'][-1]['version']))")"
186187
else
187-
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-nightly"
188+
export CONDA_CHANNEL_FLAGS="-c pytorch -c pytorch-test -c pytorch-nightly"
188189
fi
189190
if [[ "$CU_VERSION" == cpu ]]; then
190191
export CONDA_PYTORCH_BUILD_CONSTRAINT="- pytorch==$PYTORCH_VERSION${PYTORCH_VERSION_SUFFIX}"

0 commit comments

Comments
 (0)