-
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
【Hackathon No.45】为 Paddle logical 算子实现 float16 数据类型支持 #50926
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
@@ -213,6 +215,7 @@ def type_map_factory(): | |||
] | |||
|
|||
|
|||
@unittest.skipIf(core.is_compiled_with_cuda(), "core is compiled with CUDA") |
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.
这里本身是CPU的test,不需要加这个装饰器。
CPU上不支持FP16,所以可能需要修改调用的函数,当测试place为CPU且dtype为float16时,跳过后续执行的过程
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.
done
@denglianbin 请解决下多个流水线失败的问题,如 PR-CI-Mac-Python3 流水线, |
|
if use_gpu and ( | ||
type_str_map['x'] == np.float16 or type_str_map['y'] == np.float16 | ||
): | ||
continue |
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.
这里是不是有点问题?如果是gpu,并且输入是fp16,为什么跳过?
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.
您好,这里逻辑应该是没有问题的。这个函数为test_type_error,原本未为gpu注册FP16数据类型时,函数内应该拦截FP16的错误。注册FP16类型后,如果use gpu && input tpye == FP16,应该跳过函数执行。
CI提示了具体的报错内容,run_static运行出错。fp16只支持GPU,如果单测运行在CPU上,就会找不到kernel。 |
@zhangting2020 老师您好,CI问题已经解决,另外这是更新中文文档的pr:https://github.com/PaddlePaddle/docs/pull/5739。 |
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
Others
PR changes
Others
Describe
性能数据(op benchmark)