-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Enable test_driver.cc on Windows and test it in Windows CI #4202
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
Conversation
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: jcwchen <jacky82226@gmail.com>
Signed-off-by: Chun-Wei Chen <jacky82226@gmail.com>
@@ -206,6 +198,11 @@ ResolvedTestCase LoadSingleTestCase(const UnsolvedTestCase& t) { | |||
std::string input_data; | |||
ONNX_NAMESPACE::ValueInfoProto input_info; | |||
LoadSingleFile(input_file, input_data); | |||
if (test_data_counter >= st.model_.graph().input().size()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nip: shall we take into consideration on feed name and check all model's required inputs get mapped to from the feed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand -- what kind of feed name you were saying? If you were saying input/output names, then ONNX uses naming like input_X.pb
and output_X.pb
for input/output files. If added .pb files do not follow this naming, other CIs will catch this kind of error (during test generation). For here, I believe it will simply fail due to unfound data. I added the size check here, because previously wrong test data size will lead to segmentation fault (access out of range), which is not acceptable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@onnx/sig-operators-approvers Could you please review/approve this PR? Thank you for your time!
@@ -206,6 +198,11 @@ ResolvedTestCase LoadSingleTestCase(const UnsolvedTestCase& t) { | |||
std::string input_data; | |||
ONNX_NAMESPACE::ValueInfoProto input_info; | |||
LoadSingleFile(input_file, input_data); | |||
if (test_data_counter >= st.model_.graph().input().size()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't quite understand -- what kind of feed name you were saying? If you were saying input/output names, then ONNX uses naming like input_X.pb
and output_X.pb
for input/output files. If added .pb files do not follow this naming, other CIs will catch this kind of error (during test generation). For here, I believe it will simply fail due to unfound data. I added the size check here, because previously wrong test data size will lead to segmentation fault (access out of range), which is not acceptable.
Close it since the files do not exist after the deprecation of ONNXIFI. |
Description
Currently ONNX only tests test_driver_gtests on Linux and Mac. We should enable the test on Windows as well
Motivation and Context
Closes #4200.