PaddlePaddle / Paddle

PArallel Distributed Deep LEarning: Machine Learning Framework from Industrial Practice (『飞桨』核心框架,深度学习&机器学习高性能单机、分布式训练和跨平台部署)
http://www.paddlepaddle.org/
Apache License 2.0
22.17k stars 5.56k forks source link

【PaddlePaddle Hackathon 2】33、为Paddle修复ROCM(HIP)算子 #40300

Closed TCChenlong closed 1 year ago

TCChenlong commented 2 years ago

(此 ISSUE 为 PaddlePaddle Hackathon 第二期活动的任务 ISSUE,更多详见 【PaddlePaddle Hackathon 第二期】任务总览

【任务说明】

【修复建议】

【提交流程】

【提交内容】

【合入标准】

【技术要求】

【参考内容】

【答疑交流】

paddle-bot-old[bot] commented 2 years ago

您好,我们已经收到了您的问题,会安排技术人员尽快解答您的问题,请耐心等待。请您再次检查是否提供了清晰的问题描述、复现代码、环境&版本、报错信息等。同时,您也可以通过查看官网API文档常见问题历史IssueAI社区来寻求解答。祝您生活愉快~

Hi! We've received your issue and please be patient to get responded. We will arrange technicians to answer your questions as soon as possible. Please make sure that you have posted enough message to demo your request. You may also check out the APIFAQGithub Issue and AI community to get the answer.Have a nice day!

ImNoBadBoy commented 2 years ago

【Hackathon 33】PR提交

https://github.com/PaddlePaddle/Paddle/pull/41695

vim /public/home/acv2h3zdq0/Paddle/build/python/paddle/fluid/tests/unittests/test_trunc_op.py
42         self.check_output()
45         self.check_grad(['X'], 'Out', numeric_grad_delta=1e-5)

~4~`Q$K~L9 AP0 6`GX1%ET

vim /public/home/acv2h3zdq0/Paddle/build/python/paddle/fluid/tests/unittests/test_where_op.py
251             assert np.array_equal(out.cpu().numpy(), np.where(cond_i, x_i, y_i)) 
269             result = result.cpu().numpy()
270             expect = np.where(cond.cpu(), a.cpu(), b.cpu())
没有修改直接测试通过
vim /public/home/acv2h3zdq0/Paddle/build/python/paddle/fluid/tests/unittests/test_zeros_like_op.py

73             if core.is_compiled_with_cuda():
 74                 self.assertEqual((out.cpu().numpy() == np.zeros(shape, dtype)).all(),True)
 75             else:
 76                 self.assertEqual((out.numpy() == np.zeros(shape, dtype)).all(),True)

78         if core.is_compiled_with_cuda():
 79             self.assertEqual((out.cpu().numpy() == np.zeros(shape, dtype)).all(), True)
 80         else:
 81             self.assertEqual((out.numpy() == np.zeros(shape, dtype)).all(), True)

83         if core.is_compiled_with_cuda():
 84             self.assertEqual((out.cpu().numpy() == np.zeros(shape, dtype)).all(), True)
 85         else:
 86             self.assertEqual((out.numpy() == np.zeros(shape, dtype)).all(), True)
 87         paddle.enable_static()
paddle-bot[bot] commented 1 year ago

Since you haven\'t replied for more than a year, we have closed this issue/pr. If the problem is not solved or there is a follow-up one, please reopen it at any time and we will continue to follow up. 由于您超过一年未回复,我们将关闭这个issue/pr。 若问题未解决或有后续问题,请随时重新打开,我们会继续跟进。