Skip to content

Do not generate stablehlo.dynamic_broadcast_in_dim when shapes are same.#3328

Draft
nikhil-m-k wants to merge 1 commit intoonnx:mainfrom
nikhil-m-k:dyn-shape-branch
Draft

Do not generate stablehlo.dynamic_broadcast_in_dim when shapes are same.#3328
nikhil-m-k wants to merge 1 commit intoonnx:mainfrom
nikhil-m-k:dyn-shape-branch

Conversation

@nikhil-m-k
Copy link
Copy Markdown

If the input and output have a dynamic shape such that the rank of input matches the rank of output and shapes are compatible (i.e. no broadcasting is needed), then the dynamic_broadcast_in_dim is effectively a no-op.

If the input and output have a dynamic shape such that the rank of input
matches the rank of output and shapes are compatible (i.e. no broadcasting
is needed), then the dynamic_broadcast_in_dim is effectively a no-op.

Signed-off-by: nikhil-m-k <nikhil_mk@yahoo.com>
@jenkins-droid
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@tungld
Copy link
Copy Markdown
Member

tungld commented Nov 5, 2025

@jenkins-droid test this please

@nikhil-m-k nikhil-m-k marked this pull request as draft November 5, 2025 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants