Skip to content

Commit

Permalink
fix bug of #51. support python 3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ThanatosShinji committed Sep 23, 2023
1 parent 626f5ee commit 12979c9
Show file tree
Hide file tree
Showing 2 changed files with 153 additions and 150 deletions.
2 changes: 2 additions & 0 deletions onnx_tool/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ def __update_nodes_tensors__(self, constant_folding):

def __is_node_constant__(self, node):
constant_node = True
if node.op_type in ['DequantizeLinear']:
return False
for tname in node.input:
if self.tensormap[tname].type == DYNAMIC_TENSOR:
constant_node = False
Expand Down
Loading

0 comments on commit 12979c9

Please sign in to comment.