Skip to content

Commit 65b76cf

Browse files
committed
add todo
1 parent f0c9c7e commit 65b76cf

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

py/torch_tensorrt/dynamo/_compiler.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
logger = logging.getLogger(__name__)
5454

5555

56-
@needs_cross_compile
56+
@needs_cross_compile # type: ignore
5757
def cross_compile_for_windows(
5858
exported_program: ExportedProgram,
5959
inputs: Optional[Sequence[Sequence[Any]]] = None,
@@ -141,7 +141,7 @@ def cross_compile_for_windows(
141141
assume_dynamic_shape_support (bool): Setting this to true enables the converters work for both dynamic and static shapes. Default: False
142142
sparse_weights (bool): Enable sparsity for convolution and fully connected layers.
143143
enabled_precision (Set(Union(torch.dtype, torch_tensorrt.dtype))): The set of datatypes that TensorRT can use when selecting kernels
144-
capability (torch_tensorrt.EngineCapability): Restrict kernel selection to safe gpu kernels or safe dla kernels
144+
engine_capability (torch_tensorrt.EngineCapability): Restrict kernel selection to safe gpu kernels or safe dla kernels
145145
num_avg_timing_iters (int): Number of averaging timing iterations used to select kernels
146146
workspace_size (int): Maximum size of workspace given to TensorRT
147147
dla_sram_size (int): Fast software managed RAM used by DLA to communicate within a layer.
@@ -479,7 +479,7 @@ def compile(
479479
assume_dynamic_shape_support (bool): Setting this to true enables the converters work for both dynamic and static shapes. Default: False
480480
sparse_weights (bool): Enable sparsity for convolution and fully connected layers.
481481
enabled_precision (Set(Union(torch.dtype, torch_tensorrt.dtype))): The set of datatypes that TensorRT can use when selecting kernels
482-
capability (torch_tensorrt.EngineCapability): Restrict kernel selection to safe gpu kernels or safe dla kernels
482+
engine_capability (torch_tensorrt.EngineCapability): Restrict kernel selection to safe gpu kernels or safe dla kernels
483483
num_avg_timing_iters (int): Number of averaging timing iterations used to select kernels
484484
workspace_size (int): Maximum size of workspace given to TensorRT
485485
dla_sram_size (int): Fast software managed RAM used by DLA to communicate within a layer.
@@ -723,7 +723,7 @@ def compile(
723723
return trt_gm
724724

725725

726-
@fn_supports_debugger
726+
@fn_supports_debugger # type: ignore
727727
def compile_module(
728728
gm: torch.fx.GraphModule,
729729
sample_arg_inputs: Sequence[Input],
@@ -1289,7 +1289,7 @@ def convert_exported_program_to_serialized_trt_engine(
12891289
return serialized_engine
12901290

12911291

1292-
@needs_cross_compile
1292+
@needs_cross_compile # type: ignore
12931293
def save_cross_compiled_exported_program(
12941294
gm: torch.fx.GraphModule,
12951295
file_path: str,

py/torch_tensorrt/dynamo/_settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def __setstate__(self, state: dict[str, Any]) -> None:
157157
self.__dict__.update(state)
158158

159159

160+
# TODO: @Evan If changing the setting would affect the behavior of engine compilation, then should be added to this list
160161
_SETTINGS_TO_BE_ENGINE_INVARIANT = (
161162
"enabled_precisions",
162163
"max_aux_streams",

0 commit comments

Comments
 (0)