Remove unused function from build (#21057)

if Paddle FE is disabled to avoid build failures `-Werror=unused-function`
This commit is contained in:
Pawel Raasz 2023-11-14 11:27:09 +01:00 committed by GitHub
parent c974c9a478
commit 5ef7c02bdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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"))}}};
}
@ -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 {