File tree 2 files changed +8
-12
lines changed
2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -35,24 +35,19 @@ commands:
35
35
- run :
36
36
name : adding UPLOAD_CHANNEL to BASH_ENV
37
37
command : |
38
- our_upload_channel=nightly
39
- # On tags upload to test instead
40
- if [[ -n "${CIRCLE_TAG}" ]]; then
41
- our_upload_channel=test
42
- fi
43
- echo "export UPLOAD_CHANNEL=${our_upload_channel}" >> ${BASH_ENV}
38
+ echo "export UPLOAD_CHANNEL=test" >> ${BASH_ENV}
44
39
45
40
binary_common : &binary_common
46
41
parameters :
47
42
# Edit these defaults to do a release`
48
43
build_version :
49
44
description : " version number of release binary; by default, build a nightly"
50
45
type : string
51
- default : " 0.1.0 "
46
+ default : " 0.1.3 "
52
47
pytorch_version :
53
48
description : " PyTorch version to build against; by default, use a nightly"
54
49
type : string
55
- default : " 1.6 .0"
50
+ default : " 1.7 .0"
56
51
# Don't edit these
57
52
python_version :
58
53
description : " Python version to build against (e.g., 3.7)"
Original file line number Diff line number Diff line change @@ -216,10 +216,10 @@ setup_pip_pytorch_version() {
216
216
export PYTORCH_VERSION=" $( pip show torch | grep ^Version: | sed ' s/Version: *//' ) "
217
217
fi
218
218
else
219
+ UPLOAD_CHANNEL=${UPLOAD_CHANNEL:- nightly}
219
220
pip_install " torch==$PYTORCH_VERSION$PYTORCH_VERSION_SUFFIX " \
220
- -f https://download.pytorch.org/whl/torch_stable.html \
221
- -f https://download.pytorch.org/whl/test/torch_test.html \
222
- -f https://download.pytorch.org/whl/nightly/torch_nightly.html
221
+ -f " https://download.pytorch.org/whl/${CU_VERSION} /torch_stable.html" \
222
+ -f " https://download.pytorch.org/whl/${UPLOAD_CHANNEL} /${CU_VERSION} /torch_${UPLOAD_CHANNEL} .html"
223
223
fi
224
224
}
225
225
@@ -244,7 +244,8 @@ setup_conda_pytorch_constraint() {
244
244
exit 1
245
245
fi
246
246
else
247
- export CONDA_CHANNEL_FLAGS=" -c pytorch -c pytorch-nightly -c pytorch-test"
247
+ UPLOAD_CHANNEL=${UPLOAD_CHANNEL:- nightly}
248
+ export CONDA_CHANNEL_FLAGS=" -c pytorch -c pytorch-${UPLOAD_CHANNEL} "
248
249
fi
249
250
if [[ " $CU_VERSION " == cpu ]]; then
250
251
export CONDA_PYTORCH_BUILD_CONSTRAINT=" - pytorch==$PYTORCH_VERSION ${PYTORCH_VERSION_SUFFIX} "
You can’t perform that action at this time.
0 commit comments