File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
py/torch_tensorrt/dynamo/backend Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -96,19 +96,21 @@ def _pretraced_backend(
96
96
),
97
97
)
98
98
99
- logger .debug ("Post-AOT Autograd graph:\n " + str (gm .graph ))
99
+ logger .debug ("Post-AOT Autograd graph:\n " + str (gm .graph ))
100
100
101
- gm = post_lowering (gm , sample_inputs )
101
+ gm = post_lowering (gm , sample_inputs )
102
102
103
- logger .debug ("Lowered Input graph:\n " + str (gm .graph ))
103
+ logger .debug ("Lowered Input graph:\n " + str (gm .graph ))
104
104
105
- torchtrt_inputs = prepare_inputs (torch_inputs , disable_memory_format_check = True )
106
- trt_compiled = compile_module (
107
- gm ,
108
- torchtrt_inputs ,
109
- settings = settings ,
110
- )
111
- return trt_compiled
105
+ torchtrt_inputs = prepare_inputs (
106
+ torch_inputs , disable_memory_format_check = True
107
+ )
108
+ trt_compiled = compile_module (
109
+ gm ,
110
+ torchtrt_inputs ,
111
+ settings = settings ,
112
+ )
113
+ return trt_compiled
112
114
except (AssertionError , RuntimeError ):
113
115
if not settings .pass_through_build_failures :
114
116
logger .warning (
You can’t perform that action at this time.
0 commit comments