Skip to content

Add onnxruntime_plugin_ep_onnx_test for plugin EPs to run onnx test#25942

Open
chilo-ms wants to merge 12 commits intomainfrom
chi/onnx_test_runner_plugin_ep
Open

Add onnxruntime_plugin_ep_onnx_test for plugin EPs to run onnx test#25942
chilo-ms wants to merge 12 commits intomainfrom
chi/onnx_test_runner_plugin_ep

Conversation

@chilo-ms
Copy link
Contributor

@chilo-ms chilo-ms commented Sep 4, 2025

Description

Based on current onnx_test_runner features, this PR adds support for plugin EP to run onnx test and uses public api to compare output values.

Creates a separate program called onnxruntime_plugin_ep_onnx_test

Summary for this PR:

  • Based on original onnx_test_runner code and enhances it as a separate program for plugin EPs to run onnx test
  • Implements CompareOrtValue using public Apis but still keeps the old one using internal Apis.
  • Make utilities functions shareable between onnxruntime_plugin_ep_onnx_test and onnxruntime_perf_test.

Motivation and Context

See the original PR #25754

@snnn
Copy link
Contributor

snnn commented Sep 5, 2025

How about do it in Python? Python code are easier to maintain.

@chilo-ms
Copy link
Contributor Author

chilo-ms commented Sep 5, 2025

How about do it in Python? Python code are easier to maintain.

Not sure all IHVs have python setup in their CIs/Pipelines though.
Many of them rely on onnx_test_runner to run onnx test, and i think using this tool/program to test with plugin EPs should be easy.

@chilo-ms chilo-ms marked this pull request as ready for review September 8, 2025 16:35
@chilo-ms chilo-ms requested a review from yuslepukhin September 8, 2025 16:45
qti-jkilpatrick added a commit to onnxruntime/onnxruntime-qnn that referenced this pull request Jan 29, 2026
qti-jkilpatrick added a commit to onnxruntime/onnxruntime-qnn that referenced this pull request Jan 30, 2026
qti-jkilpatrick added a commit to onnxruntime/onnxruntime-qnn that referenced this pull request Jan 30, 2026
qti-jkilpatrick added a commit to onnxruntime/onnxruntime-qnn that referenced this pull request Jan 30, 2026
* Cherry pick microsoft/onnxruntime#25942 onto main
* Run tests with new plugin EP capable runner.
* Fix segfaults and disable other failing tests.
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