onnxruntime
onnxruntime copied to clipboard
[QNN EP] Handle 0-dim tensor for Concat.
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.
/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 successfully started running 4 pipeline(s).