Skip to content

Commit 230cf6a

Browse files
authored
chore: Improve error propagation for torch compile (#2106)
1 parent d4c9c06 commit 230cf6a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

py/torch_tensorrt/dynamo/backend/backends.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,14 @@ def _pretraced_backend(
8888
)
8989
return gm.forward
9090
else:
91-
raise AssertionError(
91+
logger.critical(
9292
"Halting compilation on build failure since "
9393
+ "pass_through_build_failures was specified as True. "
9494
+ "To return the default Torch implementation and avoid "
9595
+ "halting compilation on engine build failures, "
9696
+ "specify pass_through_build_failures=False."
9797
)
98+
raise
9899

99100

100101
def _compile_module(

0 commit comments

Comments
 (0)