@@ -66,7 +66,6 @@ def cross_compile_for_windows(
6666 Set [Union [torch .dtype , dtype ]], Tuple [Union [torch .dtype , dtype ]]
6767 ] = _defaults .ENABLED_PRECISIONS ,
6868 engine_capability : EngineCapability = _defaults .ENGINE_CAPABILITY ,
69- debug : bool = False ,
7069 num_avg_timing_iters : int = _defaults .NUM_AVG_TIMING_ITERS ,
7170 workspace_size : int = _defaults .WORKSPACE_SIZE ,
7271 dla_sram_size : int = _defaults .DLA_SRAM_SIZE ,
@@ -187,7 +186,7 @@ def cross_compile_for_windows(
187186 f"Cross compile for windows is only supported on x86-64 Linux architecture, current platform: { platform .system ()= } , { platform .architecture ()[0 ]= } "
188187 )
189188
190- if debug :
189+ if kwargs . get ( " debug" , False ) :
191190 warnings .warn (
192191 "`debug` is deprecated. Please use `torch_tensorrt.dynamo.Debugger` to configure debugging options." ,
193192 DeprecationWarning ,
@@ -404,7 +403,6 @@ def compile(
404403 Set [Union [torch .dtype , dtype ]], Tuple [Union [torch .dtype , dtype ]]
405404 ] = _defaults .ENABLED_PRECISIONS ,
406405 engine_capability : EngineCapability = _defaults .ENGINE_CAPABILITY ,
407- debug : bool = False ,
408406 num_avg_timing_iters : int = _defaults .NUM_AVG_TIMING_ITERS ,
409407 workspace_size : int = _defaults .WORKSPACE_SIZE ,
410408 dla_sram_size : int = _defaults .DLA_SRAM_SIZE ,
@@ -523,7 +521,7 @@ def compile(
523521 torch.fx.GraphModule: Compiled FX Module, when run it will execute via TensorRT
524522 """
525523
526- if debug :
524+ if kwargs . get ( " debug" , False ) :
527525 warnings .warn (
528526 "`debug` is deprecated. Please use `torch_tensorrt.dynamo.Debugger` for debugging functionality" ,
529527 DeprecationWarning ,
@@ -946,7 +944,8 @@ def contains_metadata(gm: torch.fx.GraphModule) -> bool:
946944 trt_module .enable_profiling ()
947945 else :
948946 path = os .path .join (
949- _debugger_settings .logging_dir , "engine_visualization"
947+ _debugger_settings .logging_dir ,
948+ "engine_visualization_profile" ,
950949 )
951950 os .makedirs (path , exist_ok = True )
952951 trt_module .enable_profiling (
@@ -990,7 +989,6 @@ def convert_exported_program_to_serialized_trt_engine(
990989 enabled_precisions : (
991990 Set [torch .dtype | dtype ] | Tuple [torch .dtype | dtype ]
992991 ) = _defaults .ENABLED_PRECISIONS ,
993- debug : bool = False ,
994992 assume_dynamic_shape_support : bool = _defaults .ASSUME_DYNAMIC_SHAPE_SUPPORT ,
995993 workspace_size : int = _defaults .WORKSPACE_SIZE ,
996994 min_block_size : int = _defaults .MIN_BLOCK_SIZE ,
@@ -1092,7 +1090,7 @@ def convert_exported_program_to_serialized_trt_engine(
10921090 Returns:
10931091 bytes: Serialized TensorRT engine, can either be saved to a file or deserialized via TensorRT APIs
10941092 """
1095- if debug :
1093+ if kwargs . get ( " debug" , False ) :
10961094 warnings .warn (
10971095 "`debug` is deprecated. Please use `torch_tensorrt.dynamo.Debugger` to configure debugging options." ,
10981096 DeprecationWarning ,
@@ -1181,7 +1179,6 @@ def convert_exported_program_to_serialized_trt_engine(
11811179 compilation_options = {
11821180 "assume_dynamic_shape_support" : assume_dynamic_shape_support ,
11831181 "enabled_precisions" : enabled_precisions ,
1184- "debug" : debug ,
11851182 "workspace_size" : workspace_size ,
11861183 "min_block_size" : min_block_size ,
11871184 "torch_executed_ops" : torch_executed_ops ,
0 commit comments