Skip to content
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 7th No.28】为 paddle.clip 进行功能增强 #69269

Open
wants to merge 53 commits into
base: develop
Choose a base branch
from

Conversation

a162837
Copy link

@a162837 a162837 commented Nov 10, 2024

PR Category

Inference

PR Types

Others

Description

【Hackathon 7th No.28】为 paddle.clip 进行功能增强
PaddlePaddle/docs#6924

Copy link

paddle-bot bot commented Nov 10, 2024

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Nov 10, 2024
@a162837 a162837 changed the title Tensor clip 【Hackathon 7th No.28】为 paddle.clip 进行功能增强 Nov 10, 2024
@a162837
Copy link
Author

a162837 commented Nov 11, 2024

为什么我两个的ci都没有跑的? @luotao1

@a162837
Copy link
Author

a162837 commented Nov 11, 2024

@sunzhongkai588 你好,请问为什么我的ci都不跑的,已经一天了

@a162837 a162837 force-pushed the TensorClip branch 2 times, most recently from 0d8a99c to 81b1c78 Compare November 25, 2024 15:33
if is_clip_tensor(min) or is_clip_tensor(max):
# min = paddle.full_like(x, min_, x.dtype) if min is None else min
# max = paddle.full_like(x, max_, x.dtype) if max is None else max
min = (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这些python层的操作能不能简化下,尽可能在kernel里面处理,kernel里面也能调用kernel、调用广播等各种函数

如果是None与float的组合,目前的逻辑不用动,
如果是None与Tensor的组合,直接往底层kernel里传就行,kernel里目前本身就支持optional的设置
如果是其他类型的组合,直接报错

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我试试,但是为什么写了c++方面的测试,但是ci就是检测不出来?我看别人也遇到这个问题

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我在github上面问,也没人来解答一下 @zhwesky2010

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我在github上面问,也没人来解答一下 @zhwesky2010

开发者你好,感谢你的贡献!由于黑客松是「比赛」性质的活动,研发团队只能提供有限的指导和 review 意见。你的 PR 完成度还有待提高,因此需要你先自行进行修改。
另外,我在 12 月 13 日已经通过邮件联系过你,请查收一下你在 GitHub 上留的邮箱。

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

抱歉,邮箱有段时间没去看了,那我用算子组合的形式吧,less_than和where,我检查过less_than是有自动广播的

@zhwesky2010
Copy link
Contributor

开发者你好,感谢你的参与!由于你的黑客松赛题完成度较高,其PR已被锁定,请尽快完善锁定的PR,并确保在2025年1月3日前完成合入。逾期未合入PR将无法获得奖金发放。

@a162837 a162837 force-pushed the TensorClip branch 3 times, most recently from 4c06f6d to 9196ed5 Compare December 25, 2024 08:03
@a162837 a162837 force-pushed the TensorClip branch 11 times, most recently from 164be97 to 2cfc88a Compare December 30, 2024 01:56
@a162837 a162837 force-pushed the TensorClip branch 5 times, most recently from 3968767 to caea762 Compare January 1, 2025 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants