Skip to content

Commit

Permalink
Remove unused function from build (openvinotoolkit#21057)
Browse files Browse the repository at this point in the history
if Paddle FE is disabled to avoid build failures `-Werror=unused-function`
  • Loading branch information
praasz authored Nov 14, 2023
1 parent c974c9a commit 5ef7c02
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ ov::OutputVector ReluToSwishTranslator(const ov::frontend::NodeContext& node) {
return {std::make_shared<ov::opset8::Swish>(node.get_input(0))};
}

#ifdef ENABLE_OV_PADDLE_FRONTEND
std::map<std::string, ov::OutputVector> ReluToSwishTranslatorPDPD(const ov::frontend::NodeContext& node) {
return {{"Out", {std::make_shared<ov::opset8::Swish>(node.get_input("X"))}}};
}
Expand All @@ -81,7 +82,7 @@ std::map<std::string, ov::OutputVector> Relu6ToReluTranslatorPaddle(const ov::fr
ret["Out"] = {relu};
return ret;
}

#endif
} // namespace

class CustomElu : public ov::op::Op {
Expand Down

0 comments on commit 5ef7c02

Please sign in to comment.