Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add one log to show more details of op unit tests #22727

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mszhanyi
Copy link
Contributor

@mszhanyi mszhanyi commented Nov 5, 2024

Description

  1. Show which EPs have been tested
  2. Show whether the kernel executed.

set ORT_UNIT_TEST_MAIN_LOG_LEVEL=1

For example:

←[0;93m2024-11-05 15:27:54.8583783 [W:onnxruntime:Default, base_tester.cc:410 onnxruntime::test::BaseTester::ExecuteModel] CPUExecutionProvider : kernel's output verfication passed←[m
←[0;93m2024-11-05 15:27:54.8654171 [W:onnxruntime:Default, base_tester.cc:410 onnxruntime::test::BaseTester::ExecuteModel] XnnpackExecutionProvider : kernel's output verfication passed←[m
[       OK ] MathOpTest.MatMulFloatType (432 ms)
[----------] 1 test from MathOpTest (433 ms total)

Motivation and Context

@mszhanyi mszhanyi changed the title Add one log to show more details of unit tests Add one log to show more details of op unit tests Nov 5, 2024
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can commit the suggested changes from lintrunner.

onnxruntime/test/providers/base_tester.cc Outdated Show resolved Hide resolved
@mszhanyi mszhanyi marked this pull request as draft November 6, 2024 05:43
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.

1 participant