Skip to content

Commit f5e64dc

Browse files
committed
test against pytorch-test with version 0.5.0.
1 parent 04e6847 commit f5e64dc

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ binary_common: &binary_common
1515
build_version:
1616
description: "version number of release binary; by default, build a nightly"
1717
type: string
18-
default: ""
18+
default: "0.5.0"
1919
pytorch_version:
2020
description: "PyTorch version to build against; by default, use a nightly"
2121
type: string
22-
default: ""
22+
default: "1.5.0"
2323
# Don't edit these
2424
python_version:
2525
description: "Python version to build against (e.g., 3.8)"

.circleci/config.yml.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ binary_common: &binary_common
1515
build_version:
1616
description: "version number of release binary; by default, build a nightly"
1717
type: string
18-
default: ""
18+
default: "0.5.0"
1919
pytorch_version:
2020
description: "PyTorch version to build against; by default, use a nightly"
2121
type: string
22-
default: ""
22+
default: "1.5.0"
2323
# Don't edit these
2424
python_version:
2525
description: "Python version to build against (e.g., 3.8)"

packaging/pkg_helpers.bash

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ setup_pip_pytorch_version() {
170170
fi
171171
else
172172
pip_install "torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX" \
173+
-f https://download.pytorch.org/whl/torch_test.html \
173174
-f https://download.pytorch.org/whl/torch_stable.html \
174175
-f https://download.pytorch.org/whl/nightly/torch_nightly.html
175176
fi
@@ -181,10 +182,10 @@ setup_pip_pytorch_version() {
181182
# You MUST have populated PYTORCH_VERSION_SUFFIX before hand.
182183
setup_conda_pytorch_constraint() {
183184
if [[ -z "$PYTORCH_VERSION" ]]; then
184-
export CONDA_CHANNEL_FLAGS="-c pytorch-nightly"
185-
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']))")"
185+
export CONDA_CHANNEL_FLAGS="-c pytorch-test"
186+
export PYTORCH_VERSION="$(conda search --json 'pytorch[channel=pytorch-test]' | 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-test -c pytorch -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)