-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add compare accuracy api #53430
Add compare accuracy api #53430
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
0d1d8ac
to
ad74a83
Compare
b7ee5a6
to
62debc6
Compare
77fa114
to
becb1e5
Compare
5b56e23
to
369b5e2
Compare
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.
一些优化建议
dump_path(str): The path of the running log, such as the log for execution using the fp32 type. | ||
another_dump_path(str): the path of another running log ,such as the log for execution using the fp16 type. | ||
output_filename(str): the excel file nmae of compare output. | ||
loss_scale(float): the loss_scale during the training phase. |
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.
- 这个参数好像也是可选的,请确认下,加上optional。
- 写清楚该参数的默认值,以及默认值的含义
This is a precision comparison tool that can be used to compare log data of float16 and float32. | ||
|
||
Args: | ||
dump_path(str): The path of the running log, such as the log for execution using the fp32 type. |
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.
type建议写成 data type,下同
感谢,我再提一个修复的PR |
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.
@zkh2016 LGTM。 该pr先合入,需要在 5月12 日前提供以下优化
- 本pr提及的文档优化建议
- 该api对应的中文文档
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.
LGTM for skipIf
PR types
New features
PR changes
APIs
Description
新增精度对比接口,解析两个日志或Dump文件里面的数据,并生成excel。
效果: