Skip to content

Commit

Permalink
Removed ONNX transformations for Less/GreaterOrEqual (openvinotoolkit…
Browse files Browse the repository at this point in the history
  • Loading branch information
gkrivor authored Jan 8, 2024
1 parent 8c09df0 commit dcf87ef
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions src/frontends/onnx/frontend/src/core/transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ namespace transform {

static const std::vector<std::string> onnx_functions_to_expand = {"Bernoulli",
"Celu",
"GreaterOrEqual",
"LessOrEqual",
"NegativeLogLikelihoodLoss",
"SoftmaxCrossEntropyLoss",
"LayerNormalization"};
Expand Down
4 changes: 2 additions & 2 deletions src/frontends/onnx/frontend/src/ops_bridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ OperatorsBridge::OperatorsBridge() {
REGISTER_OPERATOR("GlobalLpPool", 1, global_lp_pool);
REGISTER_OPERATOR("GlobalMaxPool", 1, global_max_pool);
REGISTER_OPERATOR("Greater", 1, greater);
REGISTER_OPERATOR("Greater_Or_Equal", 1, greater_or_equal);
REGISTER_OPERATOR("Greater_Or_Equal", 16, greater_or_equal);
REGISTER_OPERATOR("GreaterOrEqual", 1, greater_or_equal);
REGISTER_OPERATOR("GreaterOrEqual", 16, greater_or_equal);
REGISTER_OPERATOR("GridSample", 1, grid_sample);
REGISTER_OPERATOR("GroupNormalization", 1, group_normalization);
REGISTER_OPERATOR("GRU", 1, gru);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ graph {
input: "A"
input: "B"
output: "C"
op_type: "Greater_Or_Equal"
op_type: "GreaterOrEqual"
}
name: "test_greater_or_equal_float"
input {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ graph {
input: "A"
input: "B"
output: "C"
op_type: "Greater_Or_Equal"
op_type: "GreaterOrEqual"
}
name: "test_greater_or_equal_int"
input {
Expand Down
4 changes: 3 additions & 1 deletion src/frontends/onnx/tests/onnx_transformations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ OPENVINO_TEST(onnx_transformations, expand_function_greater_or_equal) {
"greater_or_equal_expanded.onnx"});

const auto result = compare_onnx_models(editor.model_string(), ref_model, after_func_expand_name_comp);
EXPECT_TRUE(result.is_ok) << result.error_message;

// After operation translation was implemented - check it doesn't apply
EXPECT_FALSE(result.is_ok) << result.error_message;
}

// Disabled, ticket: #81976
Expand Down

0 comments on commit dcf87ef

Please sign in to comment.