-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[Accuracy diff No.15] Fix accuracy diff for cumprod API #72897
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
Closed
ooooo-create
wants to merge
8
commits into
PaddlePaddle:develop
from
ooooo-create:accuray_diff_cumprod
Closed
Changes from 3 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
706ac0c
[Accuracy diff No.15] Fix accuracy diff for cumprod API
ooooo-create 68c3645
refine
ooooo-create a6a2f67
fix typos
ooooo-create 7960404
apply review
ooooo-create 0792f72
refine
ooooo-create c04c965
try
ooooo-create 7ed04a4
try
ooooo-create 9ade7fb
Merge branch 'develop' into accuray_diff_cumprod
ooooo-create File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
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.
这段代码涉及几次dict查找,比较耗时,过不了API性能监控(这个CI查得很严,python性能也要管),建议你可以在文件的适当地方定义一个纯DataType的set,像这样:
然后在这里直接判断:
当然能不能过CI还要你自己试一下
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.
Thanks!我试一下~
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.
这样改了发现还是不能过耶,其实我们也可以通过手动设置 dtype 来达到 paddle 和 torch api 之间的切换,这样看起来也不算是精度问题吧,属于 api 设计的考量?目前可能去 paddleAPITest 仓库进行修改更加合适~
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.
提交了 PaddleAPITest 的修改 pr : PFCCLab/PaddleAPITest#212