Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep axis in clone #13

Merged
merged 2 commits into from
Aug 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions python/tvm/contrib/pybuda_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,12 +489,13 @@ 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}"

attrs = {"axis": node.attribute[0].i} if len(node.attribute) > 0 else {}
cloned_node = onnx.helper.make_node(
node.op_type,
node.input,
[new_output_name],
name=new_node_name
name=new_node_name,
**attrs
)

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