File tree 8 files changed +17
-17
lines changed
8 files changed +17
-17
lines changed Original file line number Diff line number Diff line change @@ -367,7 +367,7 @@ commands:
367
367
- run :
368
368
name : Test torch
369
369
command : |
370
- python3 -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.device_count())"
370
+ python3 -c "import torch; print(torch.cuda.is_available()); print(torch.cuda.device_count()); print(torch.__version__) "
371
371
372
372
- run :
373
373
name : Get torch-tensorrt version information
@@ -946,7 +946,7 @@ parameters:
946
946
# Nightly platform config
947
947
torch-build :
948
948
type : string
949
- default : " 1.13 .0.dev20220921 +cu116"
949
+ default : " 1.14 .0.dev20221114 +cu116"
950
950
torch-build-index :
951
951
type : string
952
952
default : " https://download.pytorch.org/whl/nightly/cu116"
Original file line number Diff line number Diff line change @@ -56,17 +56,17 @@ new_local_repository(
56
56
http_archive (
57
57
name = "libtorch" ,
58
58
build_file = "@//third_party/libtorch:BUILD" ,
59
- sha256 = "486106ddc5b5ad532f030f447940a571b924da821b9534d25c0cef5503cdfaea " ,
59
+ sha256 = "b565c662435fd58ec295fa0791388ea52ad0f5fd33517b2d7c0fdcc91b6db531 " ,
60
60
strip_prefix = "libtorch" ,
61
- urls = ["https://download.pytorch.org/libtorch/nightly/cu116/libtorch-cxx11-abi-shared-with-deps-1.13 .0.dev20220921 %2Bcu116.zip" ],
61
+ urls = ["https://download.pytorch.org/libtorch/nightly/cu116/libtorch-cxx11-abi-shared-with-deps-1.14 .0.dev20221114 %2Bcu116.zip" ],
62
62
)
63
63
64
64
http_archive (
65
65
name = "libtorch_pre_cxx11_abi" ,
66
66
build_file = "@//third_party/libtorch:BUILD" ,
67
- sha256 = "b304ebf26effcbbefcec99134bcfb0127c499306343fbe2e2cd127213448a4a6 " ,
67
+ sha256 = "fbb37446c33b05c1e26256c09f6ffb46cea1f6ff9ee2ad5b79b146d09023b0c1 " ,
68
68
strip_prefix = "libtorch" ,
69
- urls = ["https://download.pytorch.org/libtorch/nightly/cu116/libtorch-shared-with-deps-1.13 .0.dev20220921 %2Bcu116.zip" ],
69
+ urls = ["https://download.pytorch.org/libtorch/nightly/cu116/libtorch-shared-with-deps-1.14 .0.dev20221114 %2Bcu116.zip" ],
70
70
)
71
71
72
72
# Download these tarballs manually from the NVIDIA website
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ cc_library(
33
33
"//core/util/logging" ,
34
34
"@tensorrt//:nvinfer" ,
35
35
] + select ({
36
- ":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" ],
37
- "//conditions:default" : ["@libtorch//:libtorch" ],
36
+ ":use_pre_cxx11_abi" : ["@libtorch_pre_cxx11_abi//:libtorch" , "@libtorch_pre_cxx11_abi//:c10_cuda" ],
37
+ "//conditions:default" : ["@libtorch//:libtorch" , "@libtorch//:c10_cuda" ],
38
38
}),
39
39
alwayslink = True ,
40
40
)
Original file line number Diff line number Diff line change @@ -142,9 +142,9 @@ TRTEngine::TRTEngine(
142
142
num_io = std::make_pair (inputs, outputs);
143
143
}
144
144
145
- #ifndef NDEBUG
146
- this ->enable_profiling ();
147
- #endif
145
+ #ifndef NDEBUG
146
+ this ->enable_profiling ();
147
+ #endif
148
148
LOG_DEBUG (*this );
149
149
}
150
150
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ target_sources(${lib_name}
24
24
25
25
target_link_libraries (${lib_name}
26
26
PUBLIC
27
- torch
27
+ " ${TORCH_LIBRARIES} "
28
28
TensorRT::nvinfer
29
29
core
30
30
)
@@ -71,7 +71,7 @@ target_sources(${torchtrt_lib_name}
71
71
target_link_libraries (${torchtrt_lib_name}
72
72
PUBLIC
73
73
TensorRT::TensorRT
74
- torch
74
+ " ${TORCH_LIBRARIES} "
75
75
PRIVATE
76
76
torch_tensorrt
77
77
core
@@ -111,7 +111,7 @@ target_sources(${runtime_lib_name}
111
111
target_link_libraries (${runtime_lib_name}
112
112
PUBLIC
113
113
TensorRT::TensorRT
114
- torch
114
+ " ${TORCH_LIBRARIES} "
115
115
PRIVATE
116
116
core_runtime
117
117
core_plugins
Original file line number Diff line number Diff line change 1
1
numpy
2
2
pybind11 == 2.6.2
3
3
--extra-index-url https://download.pytorch.org/whl/nightly/cu116
4
- torch == 1.13 .0.dev20220921 +cu116
4
+ torch == 1.14 .0.dev20221114 +cu116
5
5
torchvision == 0.14.0.dev20220921+cu116
6
6
--extra-index-url https://pypi.ngc.nvidia.com
7
7
nvidia-tensorrt == 8.4.3.1
Original file line number Diff line number Diff line change @@ -376,7 +376,7 @@ def run(self):
376
376
long_description = long_description ,
377
377
ext_modules = ext_modules ,
378
378
install_requires = [
379
- "torch>=1.13 .0.dev0,<1.14.0 " ,
379
+ "torch>=1.14 .0.dev0" ,
380
380
],
381
381
setup_requires = [],
382
382
cmdclass = {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class TRTModuleNext(torch.nn.Module):
31
31
32
32
def __init__ (
33
33
self ,
34
- serialized_engine : bytearray ,
34
+ serialized_engine : bytearray = bytearray () ,
35
35
name : str = "" ,
36
36
input_binding_names : List [str ] = [],
37
37
output_binding_names : List [str ] = [],
You can’t perform that action at this time.
0 commit comments