-
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
[AMP] Add python API for collecting operator stats. #52215
Conversation
你的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.
Good
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 单测重命名
test=docs_preview
cc26d31
PR types
Others
PR changes
APIs
Describe
工作内容1:添加动态图算子数据类型、调用次数统计的正式Python API,包括两组API:
paddle.amp.debugging.enable/disable_operator_stats_collection
paddle.amp.debugging.collect_operator_stats
使用示例和效果如下:
工作内容2:添加
test/amp
子目录,放置AMP功能相关的单测。三个API的英文文档预览如下:
collect_operator_stats
enable_operator_stats_collection
disable_operator_stats_collection