Skip to content

Commit

Permalink
Added optimization process for final graph
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed May 7, 2022
1 parent 9115344 commit 5f0cd81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion snc4onnx/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from snc4onnx.onnx_network_combine import combine, main

__version__ = '1.0.5'
__version__ = '1.0.6'
4 changes: 3 additions & 1 deletion snc4onnx/onnx_network_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,9 @@ def has_duplicates(seq):
continue
break
gs_combined_model.inputs[0].name = gs_combined_model.inputs[0].name.lstrip(src_prefix)
combined_model = gs.export_onnx(gs_combined_model)

gs_combined_model.cleanup().toposort()
combined_model = gs.export_onnx(gs_combined_model)

## 4. Optimize
try:
Expand Down

0 comments on commit 5f0cd81

Please sign in to comment.