-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【PaddlePaddle Hackathon 4 】add silu for paddle #16007
Conversation
@ceciliapeng2011 please review this silu |
src/frontends/paddle/src/op/silu.cpp
Outdated
auto exp_neg_x = std::make_shared<default_opset::Exp>(neg_x); | ||
auto const_one = default_opset::Constant::create<float>(ov::element::f32, {1}, {1}); | ||
auto denominator = std::make_shared<default_opset::Add>(const_one, exp_neg_x); | ||
return node.default_single_output_mapping({std::make_shared<default_opset::Divide>(x, denominator)}, {"Out"}); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use Swish operation from openvino opset.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Can one of the admins verify this patch? |
This PR will be closed in a week because of 2 weeks of no activity. |
This PR was closed because it has been stalled for 2 week with no activity. |
Details:
add silu for paddle
Reference:
https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/Silu_cn.html#silu
Test