Skip to content

Commit 96b97a6

Browse files
committed
Merge branch 'main' into dynamo_refactor
2 parents fbe8f80 + 324766f commit 96b97a6

File tree

9 files changed

+30
-34
lines changed

9 files changed

+30
-34
lines changed

.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ commands:
252252
parameters:
253253
torch-build:
254254
type: string
255-
default: "2.1.0.dev20230619+cu121"
255+
default: "2.1.0.dev20230703+cu121"
256256
torchvision-build:
257257
type: string
258-
default: "0.16.0.dev20230619+cu121"
258+
default: "0.16.0.dev20230703+cu121"
259259
torch-build-index:
260260
type: string
261261
default: "https://download.pytorch.org/whl/nightly/cu121"
@@ -1338,10 +1338,10 @@ parameters:
13381338
# Nightly platform config
13391339
torch-build:
13401340
type: string
1341-
default: "2.1.0.dev20230619+cu121"
1341+
default: "2.1.0.dev20230703+cu121"
13421342
torchvision-build:
13431343
type: string
1344-
default: "0.16.0.dev20230619+cu121"
1344+
default: "0.16.0.dev20230703+cu121"
13451345
torch-build-index:
13461346
type: string
13471347
default: "https://download.pytorch.org/whl/nightly/cu121"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ torch.jit.save(trt_ts_module, "trt_torchscript_module.ts") # save the TRT embedd
116116
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.
117117

118118
- Bazel 5.2.0
119-
- Libtorch 2.1.0.dev20230619 (built with CUDA 12.1)
119+
- Libtorch 2.1.0.dev20230703 (built with CUDA 12.1)
120120
- CUDA 12.1
121121
- cuDNN 8.8.1
122122
- TensorRT 8.6.1

WORKSPACE

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,17 @@ new_local_repository(
5151
http_archive(
5252
name = "libtorch",
5353
build_file = "@//third_party/libtorch:BUILD",
54-
sha256 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
54+
sha256 = "1ae8366aaf7af7f68f142ba644fe26c837c6fa8347ec6bd9ce605ac60e7f7e5e",
5555
strip_prefix = "libtorch",
56-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
56+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
5757
)
5858

5959
http_archive(
6060
name = "libtorch_pre_cxx11_abi",
6161
build_file = "@//third_party/libtorch:BUILD",
62-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
62+
sha256 = "9add4832f4da9223866d85810820b816ab3319d5a227066101eeb6cbb76adb4b",
6363
strip_prefix = "libtorch",
64-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
64+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
6565
)
6666

6767
# Download these tarballs manually from the NVIDIA website

py/requirements.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ numpy
22
packaging
33
pybind11==2.6.2
44
--extra-index-url https://download.pytorch.org/whl/nightly/cu121
5-
torch==2.1.0.dev20230619+cu121
6-
torchvision==0.16.0.dev20230619+cu121
5+
torch==2.1.0.dev20230703+cu121
6+
torchvision==0.16.0.dev20230703+cu121
77
--extra-index-url https://pypi.ngc.nvidia.com
88
tensorrt==8.6.1

py/torch_tensorrt/dynamo/lowering/_decompositions.py

-4
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,8 @@ def inplace_op(*args, **kwargs):
2727
replace_inplace_op(aten.addmv_, aten.addmv)
2828
replace_inplace_op(aten.baddbmm_, aten.baddbmm)
2929
replace_inplace_op(aten.cumprod_, aten.cumprod)
30-
replace_inplace_op(aten.fill_, aten.fill)
31-
replace_inplace_op(aten.gelu_, aten.gelu)
32-
replace_inplace_op(aten.hardsigmoid_, aten.hardsigmoid)
3330
replace_inplace_op(aten.index_put_, aten.index_put)
3431
replace_inplace_op(aten.index_reduce_, aten.index_reduce)
35-
replace_inplace_op(aten.logit_, aten.logit)
3632
replace_inplace_op(aten.relu_, aten.relu)
3733
replace_inplace_op(aten.round_, aten.round)
3834
replace_inplace_op(aten.scatter_, aten.scatter)

py/torch_tensorrt/fx/test/passes/test_fix_reshape_batch_dim.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ def forward(self, x, y):
3535

3636
expected_graph = r"""
3737
graph():
38-
%x : [#users=0] = placeholder[target=x]
39-
%y : [#users=2] = placeholder[target=y]
40-
%size : [#users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.size](args = (), kwargs = {input: %y})
41-
%getitem_1 : [#users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.getitem](args = (), kwargs = {idx: 0, input: %size})
42-
%reshape : [#users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.reshape](args = (), kwargs = {input: %y, acc_out_ty: ((%getitem_1, -1, 3), None, None, None, None, None, None)})
38+
%x : [num_users=0] = placeholder[target=x]
39+
%y : [num_users=2] = placeholder[target=y]
40+
%size : [num_users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.size](args = (), kwargs = {input: %y})
41+
%getitem_1 : [num_users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.getitem](args = (), kwargs = {idx: 0, input: %size})
42+
%reshape : [num_users=1] = call_function[target=torch_tensorrt.fx.tracer.acc_tracer.acc_ops.reshape](args = (), kwargs = {input: %y, acc_out_ty: ((%getitem_1, -1, 3), None, None, None, None, None, None)})
4343
return reshape
4444
"""
4545
assert (

py/torch_tensorrt/fx/test/passes/test_remove_duplicate_output_args.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ def is_leaf_module(self, m, qn):
4747
ttop_graph_actual = str(ttop.graph).strip()
4848
ttop_graph_expected = """
4949
graph():
50-
%x : [#users=1] = placeholder[target=x]
51-
%a : [#users=2] = call_module[target=a](args = (%x,), kwargs = {})
52-
%getitem : [#users=1] = call_function[target=operator.getitem](args = (%a, 0), kwargs = {})
53-
%getitem_1 : [#users=1] = call_function[target=operator.getitem](args = (%a, 0), kwargs = {})
54-
%add : [#users=1] = call_function[target=operator.add](args = (%getitem, %getitem_1), kwargs = {})
50+
%x : [num_users=1] = placeholder[target=x]
51+
%a : [num_users=2] = call_module[target=a](args = (%x,), kwargs = {})
52+
%getitem : [num_users=1] = call_function[target=operator.getitem](args = (%a, 0), kwargs = {})
53+
%getitem_1 : [num_users=1] = call_function[target=operator.getitem](args = (%a, 0), kwargs = {})
54+
%add : [num_users=1] = call_function[target=operator.add](args = (%getitem, %getitem_1), kwargs = {})
5555
return add
5656
""".strip()
5757
assert (
@@ -61,7 +61,7 @@ def is_leaf_module(self, m, qn):
6161
ttop_a_graph_actual = str(ttop.a.graph).strip()
6262
ttop_a_graph_expected = """
6363
graph():
64-
%x : [#users=1] = placeholder[target=x]
64+
%x : [num_users=1] = placeholder[target=x]
6565
return (x,)
6666
""".strip()
6767
assert (

toolchains/ci_workspaces/WORKSPACE.x86_64.release.rhel

+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 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
59+
sha256 = "1ae8366aaf7af7f68f142ba644fe26c837c6fa8347ec6bd9ce605ac60e7f7e5e",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
67+
sha256 = "9add4832f4da9223866d85810820b816ab3319d5a227066101eeb6cbb76adb4b",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
7070
)
7171

7272
####################################################################################

toolchains/ci_workspaces/WORKSPACE.x86_64.release.ubuntu

+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 = "5ba55259b65e071346a2b547b8d1378595f1467a39aaa923fecb09f134f1bcba",
59+
sha256 = "1ae8366aaf7af7f68f142ba644fe26c837c6fa8347ec6bd9ce605ac60e7f7e5e",
6060
strip_prefix = "libtorch",
61-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
61+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-cxx11-abi-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
6262
)
6363

6464
http_archive(
6565
name = "libtorch_pre_cxx11_abi",
6666
build_file = "@//third_party/libtorch:BUILD",
67-
sha256 = "8f6661bfc11597e77400e9e36cc8dd8e5e385ba82361d630d9ccede8518d7c7e",
67+
sha256 = "9add4832f4da9223866d85810820b816ab3319d5a227066101eeb6cbb76adb4b",
6868
strip_prefix = "libtorch",
69-
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230619%2Bcu121.zip"],
69+
urls = ["https://download.pytorch.org/libtorch/nightly/cu121/libtorch-shared-with-deps-2.1.0.dev20230703%2Bcu121.zip"],
7070
)
7171

7272
####################################################################################

0 commit comments

Comments
 (0)