Skip to content

Commit

Permalink
add editor tests to CI (#5812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Bencer authored May 26, 2021
1 parent f40ad26 commit 55c73ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
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
-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

0 comments on commit 55c73ab

Please sign in to comment.