You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""Takes a name, target device, serialized TensorRT engine, and binding names / order and constructs
132
133
a PyTorch ``torch.nn.Module`` around it. Uses TensorRT Python APIs to run the engine
@@ -140,6 +141,7 @@ def __init__(
140
141
name (str): Name for module
141
142
settings (torch_tensorrt.dynamo.CompilationSettings): Settings used to compile engine, assumes engine was built with default compilation settings if object not passed
142
143
weight_name_map (dict): Mapping of engine weight name to state_dict weight name
144
+
engine_is_dds (bool): Whether the engine is Data Dependent Shape
Copy file name to clipboardExpand all lines: py/torch_tensorrt/dynamo/runtime/_TorchTensorRTModule.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -79,6 +79,7 @@ def __init__(
79
79
name: str="",
80
80
settings: CompilationSettings=CompilationSettings(), # Assumes engine was built with default compilation settings if object not passed
81
81
weight_name_map: Optional[dict[Any, Any]] =None,
82
+
engine_is_dds: bool=False,
82
83
):
83
84
"""Takes a name, target device, serialized TensorRT engine, and binding names / order and constructs
84
85
a PyTorch ``torch.nn.Module`` around it. Uses the Torch-TensorRT runtime extension to run the engines
@@ -97,6 +98,7 @@ def __init__(
97
98
name (str): Name for module
98
99
settings (torch_tensorrt.dynamo.CompilationSettings): Settings used to compile engine, assumes engine was built with default compilation settings if object not passed
99
100
weight_name_map (dict): Mapping of engine weight name to state_dict weight name
101
+
engine_is_dds (bool): Whether the engine is Data Dependent Shape
0 commit comments