Remove unused function from build (#21057)
if Paddle FE is disabled to avoid build failures `-Werror=unused-function`
This commit is contained in:
1 parent
c974c9a478
commit
5ef7c02bdf
1 file changed
+2
-1
@@ -67,6 +67,7 @@ ov::OutputVector ReluToSwishTranslator(const ov::frontend::NodeContext& node) {
|
|||||||
return {std::make_shared<ov::opset8::Swish>(node.get_input(0))};
|
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) {
|
std::map<std::string, ov::OutputVector> ReluToSwishTranslatorPDPD(const ov::frontend::NodeContext& node) {
|
||||||
return {{"Out", {std::make_shared<ov::opset8::Swish>(node.get_input("X"))}}};
|
return {{"Out", {std::make_shared<ov::opset8::Swish>(node.get_input("X"))}}};
|
||||||
}
|
}
|
||||||
@@ -81,7 +82,7 @@ std::map<std::string, ov::OutputVector> Relu6ToReluTranslatorPaddle(const ov::fr
|
|||||||
ret["Out"] = {relu};
|
ret["Out"] = {relu};
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
class CustomElu : public ov::op::Op {
|
class CustomElu : public ov::op::Op {
|
||||||
|
|||||||
Reference in new issue
Block a user