We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fc68528 + f345b34 commit 355d848Copy full SHA for 355d848
sclblonnx/merge.py
@@ -219,7 +219,8 @@ def concat(
219
rename_io: bool = False,
220
edge_match: [] = None,
221
rename_edges: bool = False,
222
- _verbose: bool = False,
+ rename_init: bool = False,
223
+ _verbose: bool = True,
224
**kwargs):
225
"""
226
concat concatenates two graphs.
@@ -301,6 +302,11 @@ def concat(
301
302
sg1 = postfix_names(sg1, "_sg1", "edge")
303
sg2 = postfix_names(sg2, "_sg2", "edge")
304
305
+ if rename_init:
306
+ _print("Renaming init.", "MSG", (not _verbose))
307
+ sg1 = postfix_names(sg1, "_sg1", "init")
308
+ sg2 = postfix_names(sg2, "_sg2", "init")
309
+
310
# Paste graphs together:
311
_print("Pasting graphs.", "MSG", (not _verbose))
312
g = _paste_graphs(sg1, sg2)
0 commit comments