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
@edgchen1
Copy link
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@edgchen1 edgchen1 enabled auto-merge (squash) December 12, 2025 00:08
@edgchen1 edgchen1 disabled auto-merge December 12, 2025 00:08
@edgchen1 edgchen1 enabled auto-merge (squash) December 12, 2025 00:09
@edgchen1 edgchen1 added the ep:QNN issues related to QNN exeution provider label Dec 12, 2025
@edgchen1 edgchen1 merged commit 8f6c25f into microsoft:main Dec 12, 2025
100 of 101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:QNN issues related to QNN exeution provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants