Skip to content

Commit 84bad88

Browse files
authored
Merge pull request #1177 from pytorch/pyt1.12
feat: Update Pytorch version to 1.12
2 parents 92e32aa + dfd4a83 commit 84bad88

File tree

5 files changed

+9
-10
lines changed

5 files changed

+9
-10
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts") # save the TRT embedd
112112
These are the following dependencies used to verify the testcases. Torch-TensorRT can work with other versions, but the tests are not guaranteed to pass.
113113

114114
- Bazel 5.1.1
115-
- Libtorch 1.11.0 (built with CUDA 11.3)
115+
- Libtorch 1.12.0 (built with CUDA 11.3)
116116
- CUDA 11.3
117117
- cuDNN 8.4.1
118118
- TensorRT 8.4.1.5

WORKSPACE

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ new_local_repository(
5656
http_archive(
5757
name = "libtorch",
5858
build_file = "@//third_party/libtorch:BUILD",
59-
sha256 = "8d9e829ce9478db4f35bdb7943308cf02e8a2f58cf9bb10f742462c1d57bf287",
59+
sha256 = "80f089939de20e68e3fcad4dfa72a26c8bf91b5e77b11042f671f39ebac35865",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.11.0%2Bcu113.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-cxx11-abi-shared-with-deps-1.12.0%2Bcu113.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "90159ecce3ff451f3ef3f657493b6c7c96759c3b74bbd70c1695f2ea2f81e1ad",
67+
sha256 = "8e35371403f7052d9e9b43bcff383980dbde4df028986dc1dab539953481d55f",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.11.0%2Bcu113.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/cu113/libtorch-shared-with-deps-1.12.0%2Bcu113.zip"],
7070
)
7171

7272
# Download these tarballs manually from the NVIDIA website

py/requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--extra-index-url https://download.pytorch.org/whl/cu113
2-
torch==1.11.0
2+
torch==1.12.0+cu113
33
pybind11==2.6.2

py/torch_tensorrt/ts/_compile_spec.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@ def TensorRTCompileSpec(inputs=[],
350350
backend_spec._set_workspace_size(parsed_spec.workspace_size)
351351
backend_spec._set_dla_sram_size(parsed_spec.dla_sram_size)
352352
backend_spec._set_dla_local_dram_size(parsed_spec.dla_local_dram_size)
353-
backend_spec._set_dla_global_dram_size(parsed_spec._set_dla_global_dram_size)
353+
backend_spec._set_dla_global_dram_size(parsed_spec.dla_global_dram_size)
354354
backend_spec._set_truncate_long_and_double(parsed_spec.truncate_long_and_double)
355355
backend_spec._set_ptq_calibrator(parsed_spec._get_calibrator_handle())
356356

tests/py/requirements.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
torchvision==0.12.0
2-
--extra-index-url https://download.pytorch.org/whl/cu113
3-
pytest
1+
torchvision==0.13.0+cu113
2+
-f https://download.pytorch.org/whl/torch_stable.html

0 commit comments

Comments
 (0)