File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
- conda create -yp ${ENV_NAME} _pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
1
+ conda create -yn ${ENV_NAME} _pypi python=${MATRIX_PYTHON_VERSION} numpy ffmpeg
2
+ conda activate ${ENV_NAME} _pypi
2
3
3
4
TEST_SUFFIX=" "
4
5
if [[ ${TORCH_ONLY} == ' true' ]]; then
5
6
TEST_SUFFIX=" --package torchonly"
6
- conda run -p ${ENV_NAME} _pypi pip install --pre torch --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
7
+ pip3 install --pre torch --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
7
8
else
8
9
if [[ ${MATRIX_CHANNEL} != " release" ]]; then
9
- conda run -p ${ENV_NAME} _pypi pip install --pre torch --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
10
- conda run -p ${ENV_NAME} _pypi pip install --pre torchvision torchaudio --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} "
10
+ pip3 install --pre torch --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} _pypi_cudnn"
11
+ pip3 install --pre torchvision torchaudio --index-url " https://download.pytorch.org/whl/${MATRIX_CHANNEL} /${MATRIX_DESIRED_CUDA} "
11
12
else
12
- conda run -p ${ENV_NAME} _pypi pip install torch torchvision torchaudio
13
+ pip3 install torch torchvision torchaudio
13
14
fi
14
15
fi
15
16
16
- conda run -p ${ENV_NAME} _pypi python ./test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
17
+ python ./test/smoke_test/smoke_test.py ${TEST_SUFFIX} --runtime-error-check disabled
17
18
conda deactivate
18
19
conda env remove -p ${ENV_NAME} _pypi
You can’t perform that action at this time.
0 commit comments