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

Separate executable for paddlepaddle unit tests #6862

Merged
merged 16 commits into from
Aug 4, 2021

Conversation

nosovmik
Copy link
Contributor

@nosovmik nosovmik commented Jul 29, 2021

Details:

  • 'paddlepaddle_tests' executable is introduced
  • 'paddlepaddle_tests' are run on Azure CI (Windows + Linux)
  • Common tests are built as static library to be reused by other future frontends
  • Remove usage of environment variables for path to model zoo
  • Small fixes (PDPD_Places - don't crash when model is not exist)
  • When 'paddlepaddle' package is not installed, tests will be compiled but run will fail

Tickets:

  • 61414

@nosovmik nosovmik force-pushed the pdpd_separate_tests branch from b7774d5 to bc47fc4 Compare July 30, 2021 12:08
@nosovmik nosovmik marked this pull request as ready for review July 30, 2021 12:25
@nosovmik nosovmik requested review from a team July 30, 2021 12:25
…older

Also produce build time warning when paddle test models generation is disabled
@ilya-lavrenov ilya-lavrenov added this to the 2022.1 milestone Jul 30, 2021
@ilya-lavrenov ilya-lavrenov added the category: build OpenVINO cmake script / infra label Jul 30, 2021
@nosovmik nosovmik marked this pull request as draft July 30, 2021 16:03
@nosovmik nosovmik marked this pull request as ready for review July 30, 2021 16:54
# ONNX - generate test models
docopt~=0.6.2
onnx~=1.9.0
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this can be removed at all since ONNX has its own file now https://github.com/openvinotoolkit/openvino/blob/master/ngraph/test/requirements_test_onnx.txt

return rc;
}

std::string get_current_executable_path()
Copy link
Contributor

Choose a reason for hiding this comment

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

target_include_directories(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
target_include_directories(${TARGET_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/../..)
target_link_libraries(${TARGET_NAME} PUBLIC frontend_manager
ngraph::ngraph cnpy ie_backend ngraph_test_util commonTestUtils)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

commonTestUtils dependency on tests was introduced before in PR #6784
Ok, I didn't know that file_utils now have 'getExecutablePath', will reuse it


# Fuzzy tests for PaddlePaddle use IE_CPU engine
if (ENABLE_MKL_DNN)
add_dependencies(${TARGET_NAME} MKLDNNPlugin)
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm against of having such dependency.

We want to remove dependency on IE from ngraph tests. Currently we have it because of historical reasons, but we want to remove ngraph backends and keep only IE plugins. So, ngraph tests will not depend on IE

@nosovmik nosovmik requested a review from a team August 2, 2021 10:00
@ilya-lavrenov ilya-lavrenov merged commit 91bda36 into openvinotoolkit:master Aug 4, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
* Separate executable for paddlepaddle unit tests

* Fix CI

* Move PaddlePaddle-specific python requirements to paddlepaddle test folder
Also produce build time warning when paddle test models generation is disabled

* Renamed back PADDLE_TEST_MODELS_DIRNAME to TEST_PADDLE_MODELS_DIRNAME

* Add dependency on CPU plugin (PaddlePaddle fuzzy tests use CPU plugin for inference)

* Fix code style

* Fix review comments #2

* Code style fix

* Add dependency of 'paddlepaddle_test_models' to 'test_model_zoo'
andrei-cv pushed a commit to andrei-cv/openvino that referenced this pull request Aug 30, 2021
* Separate executable for paddlepaddle unit tests

* Fix CI

* Move PaddlePaddle-specific python requirements to paddlepaddle test folder
Also produce build time warning when paddle test models generation is disabled

* Renamed back PADDLE_TEST_MODELS_DIRNAME to TEST_PADDLE_MODELS_DIRNAME

* Add dependency on CPU plugin (PaddlePaddle fuzzy tests use CPU plugin for inference)

* Fix code style

* Fix review comments #2

* Code style fix

* Add dependency of 'paddlepaddle_test_models' to 'test_model_zoo'
akuporos pushed a commit to akuporos/openvino that referenced this pull request Sep 29, 2021
* Separate executable for paddlepaddle unit tests

* Fix CI

* Move PaddlePaddle-specific python requirements to paddlepaddle test folder
Also produce build time warning when paddle test models generation is disabled

* Renamed back PADDLE_TEST_MODELS_DIRNAME to TEST_PADDLE_MODELS_DIRNAME

* Add dependency on CPU plugin (PaddlePaddle fuzzy tests use CPU plugin for inference)

* Fix code style

* Fix review comments #2

* Code style fix

* Add dependency of 'paddlepaddle_test_models' to 'test_model_zoo'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: build OpenVINO cmake script / infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants