File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
set -eou pipefail
2
2
source " ${BUILD_ENV_FILE} "
3
3
# ${CONDA_RUN} ${PIP_INSTALL_TORCH} torchvision
4
- ${CONDA_RUN} pip install torch torchvision --index-url https://download.pytorch.org/whl/test/cu121
4
+ ${CONDA_RUN} pip install torch torchvision --index-url https://download.pytorch.org/whl/test/${CU_VERSION}
5
5
${CONDA_RUN} pip install pyyaml mpmath==1.3.0
6
- ${CONDA_RUN} pip install tensorrt==10.0.0b6 tensorrt-cu12 -bindings==10.0.0b6 tensorrt-cu12 -libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
6
+ ${CONDA_RUN} pip install tensorrt==10.0.0b6 tensorrt-${CU_VERSION :: 4} -bindings==10.0.0b6 tensorrt-${CU_VERSION :: 4} -libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
7
7
${CONDA_RUN} pip install ${RUNNER_ARTIFACT_DIR} /torch_tensorrt* .whl
8
8
9
9
echo -e " Running test script" ;
Original file line number Diff line number Diff line change 1
1
python -m pip install -U numpy packaging pyyaml setuptools wheel
2
- python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/test/cu121
3
- python -m pip install tensorrt==10.0.0b6 tensorrt-cu12 -bindings==10.0.0b6 tensorrt-cu12 -libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
2
+ python -m pip install torch==2.3.0 --index-url https://download.pytorch.org/whl/test/${CU_VERSION}
3
+ python -m pip install tensorrt==10.0.0b6 tensorrt-${CU_VERSION :: 4} -bindings==10.0.0b6 tensorrt-${CU_VERSION :: 4} -libs==10.0.0b6 --extra-index-url https://pypi.nvidia.com
4
4
5
5
choco install bazelisk -y
6
6
You can’t perform that action at this time.
0 commit comments