Skip to content

[bugfix][Relay] Fix softplus in paddlepaddle frontend#14845

Merged
echuraev merged 3 commits intoapache:mainfrom
jikechao:fix_softplus_paddle
May 15, 2023
Merged

[bugfix][Relay] Fix softplus in paddlepaddle frontend#14845
echuraev merged 3 commits intoapache:mainfrom
jikechao:fix_softplus_paddle

Conversation

@jikechao
Copy link
Copy Markdown
Member

@jikechao jikechao commented May 13, 2023

This PR fixed a similar bug with #14821 in the PaddlePaddle frontend.

For the PaddlePaddle documentation, when input * beta > threshold, Softplus(x) = x.
image

TVM miss this special case handling. It would cause wrong inference results.

A patch and a Test case that can trigger this bug are submitted in this PR.

cc @Hzfengsy @echuraev @jiangjiajun

@tvm-bot
Copy link
Copy Markdown
Collaborator

tvm-bot commented May 13, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@github-actions github-actions Bot requested review from Hzfengsy and echuraev May 13, 2023 11:23
Copy link
Copy Markdown
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks

@echuraev echuraev merged commit 602133e into apache:main May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants