File tree Expand file tree Collapse file tree 5 files changed +10
-21
lines changed
py/torch_tensorrt/dynamo/lowering/passes Expand file tree Collapse file tree 5 files changed +10
-21
lines changed Original file line number Diff line number Diff line change @@ -269,10 +269,10 @@ commands:
269269 default : " 0.16.0.dev20230703+cu121"
270270 torch-build-index :
271271 type : string
272- default : " https://download.pytorch.org/whl/nightly/ cu121"
272+ default : " https://download.pytorch.org/whl/cu121"
273273 torchvision-build-index :
274274 type : string
275- default : " https://download.pytorch.org/whl/nightly/ cu121"
275+ default : " https://download.pytorch.org/whl/cu121"
276276 steps :
277277 - run :
278278 name : Install Torch
@@ -1457,7 +1457,7 @@ parameters:
14571457 default : " 0.16.0.dev20230703+cu121"
14581458 torch-build-index :
14591459 type : string
1460- default : " https://download.pytorch.org/whl/nightly/ cu121"
1460+ default : " https://download.pytorch.org/whl/cu121"
14611461 cudnn-version :
14621462 type : string
14631463 default : " 8.9.5.30"
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ jobs:
3030 - name : Install base deps
3131 run : |
3232 python3 -m pip install pip --upgrade
33- python3 -m pip install pyyaml numpy torch --pre --extra-index-url https://download.pytorch.org/whl/nightly/ cu121
33+ python3 -m pip install pyyaml numpy torch --pre --extra-index-url https://download.pytorch.org/whl/cu121
3434 ./packaging/pre_build_script.sh
3535 - name : Get HEAD SHA
3636 id : vars
3737 run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
3838 - name : Build Python Package
3939 run : |
40- python3 -m pip install --pre . --extra-index-url https://download.pytorch.org/whl/nightly/ cu121
40+ python3 -m pip install --pre . --extra-index-url https://download.pytorch.org/whl/cu121
4141 - name : Generate New Docs
4242 run : |
4343 cd docsrc
Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ http_archive(
5454 name = "libtorch" ,
5555 build_file = "@//third_party/libtorch:BUILD" ,
5656 strip_prefix = "libtorch" ,
57- urls = ["https://download.pytorch.org/libtorch/test/ cu121/libtorch-cxx11-abi-shared-with-deps-latest .zip" ],
57+ urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0%2Bcu121 .zip" ],
5858)
5959
6060http_archive (
6161 name = "libtorch_pre_cxx11_abi" ,
6262 build_file = "@//third_party/libtorch:BUILD" ,
6363 strip_prefix = "libtorch" ,
64- urls = ["https://download.pytorch.org/libtorch/test/ cu121/libtorch-shared-with-deps-latest .zip" ],
64+ urls = ["https://download.pytorch.org/libtorch/cu121/libtorch-shared-with-deps-2.1.0%2Bcu121 .zip" ],
6565)
6666
6767# Download these tarballs manually from the NVIDIA website
Original file line number Diff line number Diff line change 33TOP_DIR=$( cd $( dirname $0 ) ; pwd) /..
44
55if [[ -z " ${USE_CXX11} " ]]; then
6- BUILD_CMD=" python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/nightly/ cu121 -w dist"
6+ BUILD_CMD=" python -m pip wheel . --extra-index-url https://download.pytorch.org/whl/cu121 -w dist"
77else
8- BUILD_CMD=" python -m pip wheel . --config-setting=" --build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/nightly/ cu121 -w dist"
8+ BUILD_CMD=" python -m pip wheel . --config-setting=" --build-option=--use-cxx11-abi" --extra-index-url https://download.pytorch.org/whl/cu121 -w dist"
99fi
1010
1111# TensorRT restricts our pip version
Original file line number Diff line number Diff line change 22from typing import Any , Sequence
33
44import torch
5- from torch_tensorrt . _utils import sanitized_torch_version
5+ from torch . _inductor . freezing import ConstantFolder , replace_node_with_constant
66from torch_tensorrt .dynamo .lowering .passes .pass_utils import (
77 clean_up_graph_after_modifications ,
88)
99
10- from packaging import version
11-
12- # Modify import location of utilities based on Torch version
13- if version .parse (sanitized_torch_version ()) < version .parse ("2.1.1" ):
14- from torch ._inductor .freezing import ConstantFolder , replace_node_with_constant
15- else :
16- from torch ._inductor .constant_folding import (
17- ConstantFolder ,
18- replace_node_with_constant ,
19- )
20-
2110logger = logging .getLogger (__name__ )
2211
2312
You can’t perform that action at this time.
0 commit comments