Skip to content

Commit

Permalink
revert backend changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zewenli98 committed Jul 16, 2024
1 parent 4e69f5d commit 31165b8
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions py/torch_tensorrt/dynamo/backend/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,19 @@ def _pretraced_backend(
),
)

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

gm = post_lowering(gm, sample_inputs)
gm = post_lowering(gm, sample_inputs)

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

torchtrt_inputs = prepare_inputs(torch_inputs, disable_memory_format_check=True)
trt_compiled = compile_module(
gm,
torchtrt_inputs,
settings=settings,
)
return trt_compiled
torchtrt_inputs = prepare_inputs(torch_inputs, disable_memory_format_check=True)
trt_compiled = compile_module(
gm,
torchtrt_inputs,
settings=settings,
)
return trt_compiled
except (AssertionError, RuntimeError):
if not settings.pass_through_build_failures:
logger.warning(
Expand Down

0 comments on commit 31165b8

Please sign in to comment.