-
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.62】增加pool3d算子BF16及单测,lgamma, masked_select FP16/BF16算子单测 #51837
Conversation
请核查一下是否具有API Check任务 |
c779537
to
dd50307
Compare
已添加文件python/paddle/fluid/tests/unittests/test_pool3d_api.py 测试 test_static_bf16_gpu |
a45ca8b
to
d509f53
Compare
LGTM,但是需要解决一下CI问题 |
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进行修改
place = core.CUDAPlace(0) | ||
if core.is_bfloat16_supported(place): | ||
if core.is_compiled_with_rocm(): | ||
self.check_output_with_place(place) |
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.
这两个分支完全一样,可以删掉
def test_check_output(self): | ||
if core.is_compiled_with_cuda(): | ||
place = core.CUDAPlace(0) | ||
if core.is_bfloat16_supported(place): |
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.
测例前有skipIf,所以if core.is_compiled_with_cuda()
和if core.is_bfloat16_supported(place)
这两个判断可以去掉了
@co63oc 这两个小问题比较容易改,直接在这个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
PR types
Others
PR changes
Others
Describe
增加pool3d算子BF16及单测
增加lgamma FP16/BF16算子单测
文档修改 PaddlePaddle/docs#5758
增加masked_select FP16/BF16算子单测
文档修改 PaddlePaddle/docs#5767
有的BF16需要传入place参数,如果不传place出现找不到kernel函数错误