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 0dde8d5 commit 5ae553b
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 @@ -633,7 +633,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 @@ -652,7 +653,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 5ae553b

Please sign in to comment.