-
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
fix fp16 dtype checking for paddle.diag API #50848
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
python/paddle/tensor/math.py
Outdated
check_variable_and_dtype(x, 'x', ['float32', 'float64'], "log") | ||
check_variable_and_dtype( | ||
x, 'x', ['float16', 'float32', 'float64'], "log" | ||
) |
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.
这里修改的是log,上面是diag
不要忘了同步修改中英文文档
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.
这里修改的是log,上面是diag 不要忘了同步修改中英文文档
尴尬了,已改正
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
PR types
Bug fixes
PR changes
APIs
Describe
paddle.diag API需增加FP16类型检查
#50832
关联中文文档修复链接:PaddlePaddle/docs#5641