We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36ead09 commit c4fa850Copy full SHA for c4fa850
torch/_dynamo/backends/onnxrt.py
@@ -116,8 +116,3 @@ def _call(*initial_args):
116
return outputs
117
118
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
@@ -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