PaddlePaddle / Paddle

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

【Hackathon 6th No.16】为 Paddle 新增 LPPool1D / LPPool2D API #63544

Open Asthestarsfalll opened 1 month ago

Asthestarsfalll commented 1 month ago

PR Category

Others

PR Types

Others

Description

rfc:

中文文档:

lp pool,前向公式

$$ f(X) = (\sum_{x \in X} x^p)^{\frac{1}{p}} $$

反向公式

$$ grad = \sum_{x \in X} (x^{p - 1} f(X)^{1 - p}) $$

本实现直接借用了 PoolRawKernel,当 norm_type 为 $\infty$ 时,等价与最大池化,因此直接调用了 MaxPool;这样似乎可以直接支持LPPool3D,如果有需求的话。单测结果: 240415_21h23m27s_screenshot

paddle-bot[bot] commented 1 month ago

你的PR提交成功,感谢你对开源项目的贡献! 请关注后续CI自动化测试结果,详情请参考Paddle-CI手册。 Your PR has been submitted. Thanks for your contribution! Please wait for the result of CI firstly. See Paddle CI Manual for details.

Asthestarsfalll commented 3 weeks ago

@cyber-pioneer 老师大部分CI已通过,请先审一下吧。

paddle-ci-bot[bot] commented 3 weeks ago

Sorry to inform you that 7c9e1dd's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

paddle-ci-bot[bot] commented 2 weeks ago

Sorry to inform you that d1f4508's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

cyber-pioneer commented 1 week ago

缺少float16和float64的单测?

cyber-pioneer commented 1 week ago

任务完成度很高,手动点赞👍

luotao1 commented 1 week ago

@Asthestarsfalll 需要附上 RFC 链接。如果之前的RFC思路和你这儿的有所区别,需要提一个修改 RFC 的PR

Asthestarsfalll commented 1 week ago

@Asthestarsfalll 需要附上 RFC 链接。如果之前的RFC思路和你这儿的有所区别,需要提一个修改 RFC 的PR

已添加~

paddle-ci-bot[bot] commented 4 days ago

Sorry to inform you that 1cba1b5's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

Asthestarsfalll commented 1 day ago

@cyber-pioneer 老师请审核~