Skip to content

Commit

Permalink
resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zewenli98 committed Oct 15, 2024
1 parent c57ab06 commit 402c9b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions py/torch_tensorrt/dynamo/conversion/_TRTInterpreter.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,8 @@ def run(

self._construct_trt_network_def()

self._save_weight_mapping()
if not self.compilation_settings.immutable_weights:
self._save_weight_mapping()

build_engine_start_time = datetime.now()
_LOGGER.info("Not found cached TRT engines. Start building engine.")
Expand All @@ -659,7 +660,7 @@ def run(
assert serialized_engine

_LOGGER.info(
f"Build weight-stripped TRT engine elapsed time: {datetime.now() - build_engine_start_time}"
f"Build TRT engine elapsed time: {datetime.now() - build_engine_start_time}"
)
_LOGGER.info(f"TRT Engine uses: {serialized_engine.nbytes} bytes of Memory")

Expand Down

0 comments on commit 402c9b0

Please sign in to comment.