Skip to content

Commit

Permalink
keep axis attribute in inserted onnx dequantize clone
Browse files Browse the repository at this point in the history
  • Loading branch information
LPanosTT committed Aug 1, 2024
1 parent 731ac2a commit a14c698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/tvm/contrib/pybuda_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,12 @@ def duplicate_dequantize_nodes_in_onnx_graph(onnx_module):
for i, consumer_name in enumerate(consumers):
new_node_name = node.name + f"_clone{i}"
new_output_name = output_name + f"_clone{i}"

cloned_node = onnx.helper.make_node(
node.op_type,
node.input,
[new_output_name],
name=new_node_name
name=new_node_name,
axis=node.attribute[0].i
)

# Add the cloned node to the list of nodes to add
Expand Down

0 comments on commit a14c698

Please sign in to comment.