Skip to content

[Paddle Tensor 第二期 API支持 0-size Tensor] paddle.mean 支持 0-size tensor - #71555

Merged
luotao1 merged 16 commits into
PaddlePaddle:developfrom
cszdrg:develop
Mar 17, 2025
Merged

luotao1 merged 16 commits into
PaddlePaddle:developfrom
cszdrg:develop

Conversation

@cszdrg

@cszdrg cszdrg commented Mar 11, 2025

Copy link
Copy Markdown
Contributor

PR Category

User Experience

PR Types

Bug fixes

Description

直接修改reducefunction.h好像就过了
屏幕截图 2025-03-11 152627

@paddle-bot

paddle-bot Bot commented Mar 11, 2025

Copy link
Copy Markdown

你的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 Mar 11, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Mar 11, 2025
@cszdrg

cszdrg commented Mar 12, 2025

Copy link
Copy Markdown
Contributor Author

@HydrogenSulfate 显示报错不符合规范 这个应该怎么更改呢?

@luotao1

luotao1 commented Mar 12, 2025

Copy link
Copy Markdown
Collaborator

看了你的报错,应该没有问题,到时review通过后,豁免即可

@HydrogenSulfate HydrogenSulfate left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

感谢提交PR,还需要添加一些对以0-size为输入的mean的单元测试,并且预期结果应该是nan

@cszdrg

cszdrg commented Mar 13, 2025

Copy link
Copy Markdown
Contributor Author

感谢提交PR,还需要添加一些对以0-size为输入的mean的单元测试,并且预期结果应该是nan

好的 已提交

Comment thread test/legacy_test/test_mean_op.py Resolved

@HydrogenSulfate HydrogenSulfate left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

YqGe585 pushed a commit to YqGe585/Paddle that referenced this pull request May 7, 2025
…addlePaddle#71555)

* array_api_tests/test_creation_functions.py::test_arange鲁棒性增强

* add test about 0 size output of arange in legacy_test/test_arange.py

* fix test about 0 size output of arange in legacy_test/test_arange.py

* fix test about 0 size output of arange in legacy_test/test_arange.py

* fix test about 0 size output of arange in legacy_test/test_arange.py

* fix test about 0 size output of arange in legacy_test/test_arange.py

* fix test about 0 size output of arange in legacy_test/test_arange.py

* mean 函数修改

* add TestMeanOp_ZeroSize

* add test for mean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contributor External developers HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants