Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion py/torch_tensorrt/dynamo/_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -1456,16 +1456,20 @@ def convert_exported_program_to_serialized_trt_engine(
settings=settings,
engine_cache=engine_cache,
)
except UnsupportedOperatorException:
except UnsupportedOperatorException as e:
logger.error(
f"Conversion of module {gm} not currently fully supported or convertible!",
exc_info=True,
)
raise UnsupportedOperatorException(
f"Conversion of module {gm} not currently fully supported or convertible!"
) from e
except Exception as e:
logger.error(
f"While interpreting the module got an error: {e}",
exc_info=True,
)
raise RuntimeError(f"While interpreting the module got an error: {e}") from e

serialized_engine: bytes = interpreter_result.serialized_engine
return serialized_engine
Expand Down
1 change: 0 additions & 1 deletion tests/py/dynamo/models/test_models_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,6 @@ def calibrate_loop(model):
trt_model = torchtrt.dynamo.compile(
exp_program,
inputs=[input_tensor],
enabled_precisions={torch.float8_e4m3fn},
min_block_size=1,
cache_built_engines=False,
reuse_cached_engines=False,
Expand Down
Loading