Skip to content

Commit c4fa850

Browse files
author
Wei
authored
Reserve the tensorrt backend name for torch-tensorrt (#95627)
1 parent 36ead09 commit c4fa850

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

torch/_dynamo/backends/onnxrt.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,3 @@ def _call(*initial_args):
116116
return outputs
117117

118118
return _call
119-
120-
121-
@register_backend
122-
def tensorrt(gm, example_inputs):
123-
return onnxrt(gm, example_inputs, provider="TensorrtExecutionProvider")

torch/_dynamo/backends/tensorrt.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# import torch # type: ignore[import]
2+
# from .common import device_from_inputs, fake_tensor_unsupported # type: ignore[import]
3+
# from .registry import register_backend # type: ignore[import]
4+
5+
"""
6+
Placeholder for TensorRT backend for dynamo via torch-tensorrt
7+
"""
8+
9+
# @register_backend
10+
# def tensorrt(gm, example_inputs):
11+
# import torch_tensorrt # type: ignore[import]
12+
# pass

0 commit comments

Comments
 (0)