Skip to content

Commit

Permalink
Accelerate processing
Browse files Browse the repository at this point in the history
  • Loading branch information
PINTO0309 committed Jan 2, 2023
1 parent acf637d commit 1f5a674
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 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.10'
__version__ = '1.0.11'
11 changes: 6 additions & 5 deletions snc4onnx/onnx_network_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,12 @@ def has_duplicates(seq):
print(f'{Color.YELLOW}WARNING:{Color.RESET} {tracetxt}')

## 5. Restore a node's custom domain
combined_model_graph_nodes = combined_model.graph.node
for combined_model_graph_node in combined_model_graph_nodes:
for custom_domain_check_onnx_node in custom_domain_check_onnx_nodes:
if combined_model_graph_node.name == custom_domain_check_onnx_node.name:
combined_model_graph_node.domain = custom_domain_check_onnx_node.domain
if contains_custom_domain:
combined_model_graph_nodes = combined_model.graph.node
for combined_model_graph_node in combined_model_graph_nodes:
for custom_domain_check_onnx_node in custom_domain_check_onnx_nodes:
if combined_model_graph_node.name == custom_domain_check_onnx_node.name:
combined_model_graph_node.domain = custom_domain_check_onnx_node.domain

## 6. Final save
if output_onnx_file_path:
Expand Down

0 comments on commit 1f5a674

Please sign in to comment.