Skip to content

Conversation

@minfhong-qti
Copy link
Contributor

Description

Define a util function IsNullNodeUnitIODef to check whether given tensor has 0-dim in shape. To restrict the impact, current implementation only skip constructing such tensor for Concat.

Motivation and Context

There may exsit tensor with 0-dim in shape, especially for Concat's inputs. Such null inputs often exist in models saved from PyTorch. Since QNN could not execute empty tensors, they must be explicitly handled.

@minfhong-quic minfhong-quic force-pushed the dev/minfhong/qnn-0-dim branch from 8c9f700 to 21e4877 Compare December 8, 2025 02:05
There may exsit tensor with 0-dim in shape, especially for Concat's
inputs. Modify the base op builder to ignore such tensor during
construction.
Test: UT.
@minfhong-quic minfhong-quic force-pushed the dev/minfhong/qnn-0-dim branch from 21e4877 to 7606323 Compare December 8, 2025 02:09
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.

2 participants