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

[ONNX EDITOR] Add ONNX Editor unit tests to CI #5812

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .ci/azure/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ jobs:
-DENABLE_PYTHON=ON
-DPYTHON_EXECUTABLE=/usr/bin/python3.6
-DENABLE_TESTS=ON
-DNGRAPH_ONNX_IMPORT_ENABLE=ON
Copy link
Contributor Author

Choose a reason for hiding this comment

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

onnx_editor links to onnx_importer

-DNGRAPH_ONNX_EDITOR_ENABLE=ON
-DENABLE_FASTER_BUILD=ON
-DIE_EXTRA_MODULES=$(OPENVINO_CONTRIB_REPO_DIR)/modules
$(REPO_DIR)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ namespace
}
else
{
// If tensor descriptor couldn't be found value info has to be specified as fully dynamic:
// If tensor descriptor couldn't be found value info has to be specified
// as fully dynamic:
// - Fully dynamic shape
// - Unknown data type
auto dynamic_value_info = ONNX_NAMESPACE::ValueInfoProto();
Expand Down
2 changes: 1 addition & 1 deletion ngraph/test/onnx/onnx_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ NGRAPH_TEST(onnx_editor, cut_operator_with_no_schema)
ONNXModelEditor editor{file_util::path_join(
SERIALIZED_ZOO, "onnx/model_editor/unknown_input_value_info.prototxt")};

editor.cut_graph_fragment({{InputEdge(1, "X")}}, {});
editor.cut_graph_fragment({{InputEdge{1, 0}}}, {});

const auto ref_model = file_util::path_join(
SERIALIZED_ZOO, "onnx/model_editor/reference/unknown_input_value_info.prototxt");
Expand Down