[Python API] Remove unused dependency on onnx_frontend (#8688)
This commit is contained in:
committed by
GitHub
parent
bcb7415fce
commit
d414b35d75
@@ -22,7 +22,7 @@ OPENVINO_ROOT_DIR = os.path.normpath(os.path.join(PYTHON_API_ROOT_DIR, "../../..
|
||||
# Change current working directory to runtime/bindings/python
|
||||
os.chdir(PYTHON_API_ROOT_DIR)
|
||||
|
||||
NGRAPH_LIBS = ["ngraph", "onnx_ov_frontend", "openvino"]
|
||||
NGRAPH_LIBS = ["ngraph", "openvino"]
|
||||
|
||||
packages = [
|
||||
"ngraph",
|
||||
|
||||
@@ -56,11 +56,6 @@ target_include_directories(_${PROJECT_NAME} PRIVATE "../")
|
||||
|
||||
target_link_libraries(_${PROJECT_NAME} PRIVATE openvino::core openvino::frontend::manager)
|
||||
|
||||
if(TARGET onnx_ov_frontend)
|
||||
add_dependencies(_${PROJECT_NAME} onnx_ov_frontend)
|
||||
endif()
|
||||
|
||||
|
||||
# perform copy
|
||||
if(OpenVINO_SOURCE_DIR)
|
||||
add_custom_command(TARGET _${PROJECT_NAME}
|
||||
|
||||
@@ -8,20 +8,17 @@
|
||||
#include "pyngraph/axis_vector.hpp"
|
||||
#include "pyngraph/coordinate.hpp"
|
||||
#include "pyngraph/coordinate_diff.hpp"
|
||||
#include "pyngraph/function.hpp"
|
||||
#include "pyngraph/node.hpp"
|
||||
#include "pyngraph/node_factory.hpp"
|
||||
#include "pyngraph/node_input.hpp"
|
||||
#include "pyngraph/node_output.hpp"
|
||||
#if defined(NGRAPH_ONNX_FRONTEND_ENABLE)
|
||||
# include "pyngraph/onnx_import/onnx_import.hpp"
|
||||
#endif
|
||||
#include "pyngraph/dimension.hpp"
|
||||
#include "pyngraph/discrete_type_info.hpp"
|
||||
#include "pyngraph/frontend/frontend.hpp"
|
||||
#include "pyngraph/frontend/frontend_manager.hpp"
|
||||
#include "pyngraph/frontend/inputmodel.hpp"
|
||||
#include "pyngraph/frontend/place.hpp"
|
||||
#include "pyngraph/function.hpp"
|
||||
#include "pyngraph/node.hpp"
|
||||
#include "pyngraph/node_factory.hpp"
|
||||
#include "pyngraph/node_input.hpp"
|
||||
#include "pyngraph/node_output.hpp"
|
||||
#include "pyngraph/ops/constant.hpp"
|
||||
#include "pyngraph/ops/parameter.hpp"
|
||||
#include "pyngraph/ops/result.hpp"
|
||||
@@ -67,9 +64,6 @@ PYBIND11_MODULE(_pyngraph, m) {
|
||||
regclass_pyngraph_op_Constant(m_op);
|
||||
regclass_pyngraph_op_Parameter(m_op);
|
||||
regclass_pyngraph_op_Result(m_op);
|
||||
#if defined(NGRAPH_ONNX_FRONTEND_ENABLE)
|
||||
regmodule_pyngraph_onnx_import(m);
|
||||
#endif
|
||||
regmodule_pyngraph_op_util(m_op);
|
||||
regclass_pyngraph_Function(m);
|
||||
regmodule_pyngraph_passes(m);
|
||||
|
||||
Reference in New Issue
Block a user