Skip to content

Commit d13a46b

Browse files
committed
revert backend changes
1 parent 4e69f5d commit d13a46b

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

py/torch_tensorrt/dynamo/backend/backends.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,21 @@ def _pretraced_backend(
9696
),
9797
)
9898

99-
logger.debug("Post-AOT Autograd graph:\n" + str(gm.graph))
99+
logger.debug("Post-AOT Autograd graph:\n" + str(gm.graph))
100100

101-
gm = post_lowering(gm, sample_inputs)
101+
gm = post_lowering(gm, sample_inputs)
102102

103-
logger.debug("Lowered Input graph:\n " + str(gm.graph))
103+
logger.debug("Lowered Input graph:\n " + str(gm.graph))
104104

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
112114
except (AssertionError, RuntimeError):
113115
if not settings.pass_through_build_failures:
114116
logger.warning(

0 commit comments

Comments
 (0)