* [NG Frontend] Introduce classes and macros for Frontend-specific exceptions * [nGraph Frontend] Python bindings Exposing Python API for nGraph FrontEndManager introduced in PR #5470 * Exposing 'Dimension' class to Python nGraph API * Model optimizer code from pdpd_frontend Removed 'use_legacy_frontend' option as not needed for PDPD integration * Added XML/BIN prints for 'ngraph-FE' serialization path * Update python bindings to latest code from PR #5995 * Add OV_FRONTEND_PATH to LD_LIBRARY_PATH by default for Model Optimizer * Test with 'mock' frontend * Added meta info to generated IR Added more tests to cover currently supported scenarios Clang config for MO mock frontend * some flake8 and pylint fixes * Try to 'import' ngraph-related packages on top of python files This will help to specify type of function arguments, but can break unit tests if they're using functions directly without ngraph * CI fixes * Run tests from 'main_test.py' inside ngraph environment * Fixed review comments * Fixed comments Added more tests for checking if inputs and outputs are same * Renamed front_ng to moc_frontend * Update package_BOM.txt
47 lines
1.7 KiB
CMake
47 lines
1.7 KiB
CMake
# Copyright (C) 2018-2021 Intel Corporation
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
if (NOT NGRAPH_PYTHON_BUILD_ENABLE)
|
|
message(WARNING "Please enable nGraph Python API (_pyngraph) target to enable Model Optimizer target")
|
|
elseif(NOT ENABLE_PYTHON)
|
|
message(WARNING "Please enable IE Python API (ie_api and offline_transformations_api) targets to enable Model Optimizer target")
|
|
else()
|
|
add_custom_target(model_optimizer DEPENDS ie_api offline_transformations_api inference_engine_ir_reader)
|
|
if(ENABLE_TESTS)
|
|
add_subdirectory(unit_tests/mock_mo_frontend/mock_mo_ngraph_frontend)
|
|
add_dependencies(model_optimizer mock_mo_ngraph_frontend)
|
|
|
|
add_subdirectory(unit_tests/mock_mo_frontend/mock_mo_python_api)
|
|
add_dependencies(model_optimizer mock_mo_python_api)
|
|
endif()
|
|
endif()
|
|
|
|
# install
|
|
ie_cpack_add_component(model_optimizer)
|
|
|
|
configure_file(
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/automation/version.txt.in"
|
|
"${CMAKE_CURRENT_SOURCE_DIR}/version.txt"
|
|
@ONLY)
|
|
|
|
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
|
|
DESTINATION deployment_tools/model_optimizer
|
|
USE_SOURCE_PERMISSIONS
|
|
COMPONENT model_optimizer
|
|
PATTERN ".*" EXCLUDE
|
|
PATTERN "automation" EXCLUDE
|
|
PATTERN "requirements_dev.txt" EXCLUDE
|
|
PATTERN "README.md" EXCLUDE
|
|
PATTERN "CMakeLists.txt" EXCLUDE
|
|
|
|
PATTERN "extensions/front/caffe/CustomLayersMapping.xml" EXCLUDE
|
|
PATTERN "mo/utils/convert.py" EXCLUDE
|
|
PATTERN "unit_tests" EXCLUDE
|
|
|
|
REGEX ".*__pycache__.*" EXCLUDE
|
|
REGEX ".*\\.pyc$" EXCLUDE
|
|
REGEX ".*\\.swp" EXCLUDE
|
|
REGEX ".*\\.DS_Store$" EXCLUDE
|
|
REGEX ".*_test\.py$" EXCLUDE
|
|
)
|