Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit b7e663d

Browse files
author
DEKHTIARJonathan
committed
[Benchmarking-Py] Adding the argument --detailed_conversion_summary to print the detailed TRTConverterV2 summary
1 parent 8efe5b8 commit b7e663d

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

tftrt/benchmarking-python/benchmark_args.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,13 @@ def __init__(self):
201201
help="Whether to build TensorRT engines during runtime."
202202
)
203203

204+
self._add_bool_argument(
205+
name="detailed_conversion_summary",
206+
default=False,
207+
required=False,
208+
help="Whether to use TF-TRT detailled conversion summary."
209+
)
210+
204211
self._parser.add_argument(
205212
"--max_workspace_size",
206213
type=int,

tftrt/benchmarking-python/benchmark_runner.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,10 @@ def engine_build_input_fn(num_batches, model_phase):
378378
line_length = max(160, os.get_terminal_size().columns)
379379
except OSError:
380380
line_length = 160
381-
converter.summary(line_length=line_length, detailed=True)
381+
converter.summary(
382+
line_length=line_length,
383+
detailed=self._args.detailed_conversion_summary
384+
)
382385
except AttributeError:
383386
pass
384387

0 commit comments

Comments
 (0)