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:
269
269
default : " 0.16.0.dev20230703+cu121"
270
270
torch-build-index :
271
271
type : string
272
- default : " https://download.pytorch.org/whl/nightly/ cu121"
272
+ default : " https://download.pytorch.org/whl/cu121"
273
273
torchvision-build-index :
274
274
type : string
275
- default : " https://download.pytorch.org/whl/nightly/ cu121"
275
+ default : " https://download.pytorch.org/whl/cu121"
276
276
steps :
277
277
- run :
278
278
name : Install Torch
@@ -1457,7 +1457,7 @@ parameters:
1457
1457
default : " 0.16.0.dev20230703+cu121"
1458
1458
torch-build-index :
1459
1459
type : string
1460
- default : " https://download.pytorch.org/whl/nightly/ cu121"
1460
+ default : " https://download.pytorch.org/whl/cu121"
1461
1461
cudnn-version :
1462
1462
type : string
1463
1463
default : " 8.9.5.30"
Original file line number Diff line number Diff line change @@ -30,14 +30,14 @@ jobs:
30
30
- name : Install base deps
31
31
run : |
32
32
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
34
34
./packaging/pre_build_script.sh
35
35
- name : Get HEAD SHA
36
36
id : vars
37
37
run : echo "sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
38
38
- name : Build Python Package
39
39
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
41
41
- name : Generate New Docs
42
42
run : |
43
43
cd docsrc
Original file line number Diff line number Diff line change @@ -54,14 +54,14 @@ http_archive(
54
54
name = "libtorch" ,
55
55
build_file = "@//third_party/libtorch:BUILD" ,
56
56
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" ],
58
58
)
59
59
60
60
http_archive (
61
61
name = "libtorch_pre_cxx11_abi" ,
62
62
build_file = "@//third_party/libtorch:BUILD" ,
63
63
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" ],
65
65
)
66
66
67
67
# Download these tarballs manually from the NVIDIA website
Original file line number Diff line number Diff line change 3
3
TOP_DIR=$( cd $( dirname $0 ) ; pwd) /..
4
4
5
5
if [[ -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"
7
7
else
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"
9
9
fi
10
10
11
11
# TensorRT restricts our pip version
Original file line number Diff line number Diff line change 2
2
from typing import Any , Sequence
3
3
4
4
import torch
5
- from torch_tensorrt . _utils import sanitized_torch_version
5
+ from torch . _inductor . freezing import ConstantFolder , replace_node_with_constant
6
6
from torch_tensorrt .dynamo .lowering .passes .pass_utils import (
7
7
clean_up_graph_after_modifications ,
8
8
)
9
9
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
-
21
10
logger = logging .getLogger (__name__ )
22
11
23
12
You can’t perform that action at this time.
0 commit comments