-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 check_numerics API. #54301
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.
LGTM for docs
var_name(str): The name of target tensor. | ||
debug_mode(paddle.amp.debugging.DebugMode, optional): The mode of debugging to be used. Default is DebugMode.CHECK_NAN_INF_AND_ABORT. | ||
|
||
Returns: |
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.
这里预览效果有问题,不方便的话可以在下个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.
好的
PR types
Others
PR changes
APIs
Description
Pcard-70458
新增
paddle.amp.debugging.check_numerics
接口,组网中可通过调用该接口,检查某个Tensor
是否存在异常值、最大值最小值分别是多少。注意,该接口不受FLAGS_check_nan_inf
开关控制。英文文档预览:
中文文档:PaddlePaddle/docs#5922