Skip to content

[QNN-EP] Minor fix: compare different types#24550

Merged
HectorSVC merged 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/yuduo/warnings
Apr 29, 2025
Merged

[QNN-EP] Minor fix: compare different types#24550
HectorSVC merged 1 commit intomicrosoft:mainfrom
CodeLinaro:dev/yuduo/warnings

Conversation

@1duo
Copy link
Contributor

@1duo 1duo commented Apr 25, 2025

Fix: /local/mnt/workspace/onnxruntime-qnn-ep/onnxruntime/core/providers/qnn/builder/opbuilder/softmax_op_builder.cc: In function ‘std::vector<unsigned int> onnxruntime::qnn::FlattenShapeFromAxis(std::vector<unsigned int>&, int32_t)’: /local/mnt/workspace/onnxruntime-qnn-ep/onnxruntime/core/providers/qnn/builder/opbuilder/softmax_op_builder.cc:47:28: error: comparison of integer expressions of different signedness: ‘int32_t’ {aka ‘int’} and ‘std::vector<unsigned int>::size_type’ {aka ‘long unsigned int’} [-Werror=sign-compare] 47 | assert(axis >= 0 && axis < input_shape.size()); |

@1duo 1duo changed the title Minor fix: compare different types [QNN-EP] Minor fix: compare different types Apr 25, 2025
@snnn
Copy link
Contributor

snnn commented Apr 26, 2025

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

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@1duo
Copy link
Contributor Author

1duo commented Apr 28, 2025

Hi @snnn, thanks for helping with starting the CI!

I'm new to this project, could you help to check if the CI failure is related? If so, could you point me to the details I should pay attention to? If not, would we able to re-trigger the failed one?

@1duo
Copy link
Contributor Author

1duo commented Apr 28, 2025

/azp run Windows ARM64 QNN CI Pipeline

@azure-pipelines
Copy link

Commenter does not have sufficient privileges for PR 24550 in repo microsoft/onnxruntime

@HectorSVC
Copy link
Contributor

/azp run Linux QNN CI Pipeline,Windows x64 QNN CI Pipeline,Windows ARM64 QNN CI Pipeline,Linux Android Emulator QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 4 pipeline(s).

@HectorSVC HectorSVC added the ep:QNN issues related to QNN exeution provider label Apr 29, 2025
@HectorSVC HectorSVC merged commit 15b3f08 into microsoft:main Apr 29, 2025
71 checks passed
ankitm3k pushed a commit to intel/onnxruntime that referenced this pull request May 12, 2025
Fix:
```/local/mnt/workspace/onnxruntime-qnn-ep/onnxruntime/core/providers/qnn/builder/opbuilder/softmax_op_builder.cc:
In function ‘std::vector<unsigned int>
onnxruntime::qnn::FlattenShapeFromAxis(std::vector<unsigned int>&,
int32_t)’:

/local/mnt/workspace/onnxruntime-qnn-ep/onnxruntime/core/providers/qnn/builder/opbuilder/softmax_op_builder.cc:47:28:
error: comparison of integer expressions of different signedness:
‘int32_t’ {aka ‘int’} and ‘std::vector<unsigned int>::size_type’ {aka
‘long unsigned int’} [-Werror=sign-compare]
   47 |   assert(axis >= 0 && axis < input_shape.size());
      |```
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.

3 participants