Skip to content

Commit 467b2e4

Browse files
committed
fix
1 parent 320aae8 commit 467b2e4

File tree

3 files changed

+400
-1
lines changed

3 files changed

+400
-1
lines changed

onnx_diagnostic/_command_lines_parser.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,20 @@ def get_parser_sbs() -> ArgumentParser:
13421342
default="replay",
13431343
help="If the replay is triggered, this defines the folder where everything is dumped.",
13441344
)
1345+
parser.add_argument(
1346+
"-p",
1347+
"--replay-prefix-model",
1348+
action=BooleanOptionalAction,
1349+
default=False,
1350+
help=textwrap.dedent(
1351+
"""
1352+
There are two ways to recompute an intermediate output, the first one is to "
1353+
produce the minimal model between torch and onnx.
1354+
The second one is to dump onnx models from the inputs
1355+
to the considered intermediate results. This enables the second one.
1356+
"""
1357+
),
1358+
)
13451359

13461360
return parser
13471361

@@ -1431,6 +1445,7 @@ def _size(name):
14311445
set(args.replay_op_types.split(",")) if args.replay_op_types else None
14321446
),
14331447
dump_folder=args.replay_folder,
1448+
dump_prefix_model=args.replay_prefix_model,
14341449
)
14351450

14361451
print("-- starts side-by-side")

0 commit comments

Comments
 (0)