Skip to content

[0-size Tensor No.341、347] Add 0-size Tensor support for tile [fluid_ops] - #73040

Merged
luotao1 merged 6 commits into
PaddlePaddle:developfrom
co63oc:b53
Jul 16, 2025
Merged

luotao1 merged 6 commits into
PaddlePaddle:developfrom
co63oc:b53

Conversation

@co63oc

@co63oc co63oc commented May 31, 2025 •

Copy link
Copy Markdown
Contributor

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

[0-size Tensor No.341、347] Add 0-size Tensor support for tile

修改前向和反向
TileInferMeta 去掉0判断, symbolic shape中没有对应部分没有修改

bool TileOpInferSymbolicShape(pir::Operation *op,

image

kernel 修改 cpu/gpu/xpu,部分共用impl实现

torch 反向测试填充0

import torch
x = torch.randn([2,1])
x.requires_grad=True
torch.tile(x, [0]).sum().backward()
print(x.grad)

tensor([[0.],
        [0.]])

PaddleAPITest 测试通过
image

@paddle-bot

paddle-bot Bot commented May 31, 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 May 31, 2025
@co63oc co63oc changed the title [0-size Tensor No.341、347] Add 0-size Tensor support for tile CI测试不review tile Jun 1, 2025
@paddle-ci-bot

paddle-ci-bot Bot commented Jun 11, 2025

Copy link
Copy Markdown

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

@co63oc co63oc closed this Jun 14, 2025
@co63oc
co63oc deleted the b53 branch June 14, 2025 22:43
@co63oc
co63oc restored the b53 branch June 14, 2025 22:45
@co63oc co63oc reopened this Jun 14, 2025
@co63oc co63oc changed the title CI测试不review tile [0-size Tensor No.341、347] Add 0-size Tensor support for tile Jul 2, 2025
@co63oc co63oc changed the title [0-size Tensor No.341、347] Add 0-size Tensor support for tile [0-size Tensor No.341、347] Add 0-size Tensor support for tile [fluid_ops] Jul 3, 2025
@co63oc co63oc changed the title [0-size Tensor No.341、347] Add 0-size Tensor support for tile [fluid_ops] CI测试不review tile Jul 3, 2025
@codecov-commenter

codecov-commenter commented Jul 6, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (develop@e1842d4). Learn more about missing BASE report.

Additional details and impacted files
@@             Coverage Diff             @@
##             develop    #73040   +/-   ##
===========================================
  Coverage           ?   100.00%           
===========================================
  Files              ?         1           
  Lines              ?         1           
  Branches           ?         0           
===========================================
  Hits               ?         1           
  Misses             ?         0           
  Partials           ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@co63oc

co63oc commented Jul 6, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@co63oc co63oc changed the title CI测试不review tile [0-size Tensor No.341、347] Add 0-size Tensor support for tile Jul 6, 2025
@co63oc

co63oc commented Jul 7, 2025

Copy link
Copy Markdown
Contributor Author

@DanielSun11 CI已完成需要review @luotao1

@co63oc co63oc changed the title [0-size Tensor No.341、347] Add 0-size Tensor support for tile [0-size Tensor No.341、347] Add 0-size Tensor support for tile [fluid_ops] Jul 12, 2025
@luotao1 luotao1 added the HappyOpenSource Pro 进阶版快乐开源活动,更具挑战性的任务 label Jul 14, 2025
@co63oc

co63oc commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

/re-run all-failed

@co63oc

co63oc commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

@DanielSun11 CI已完成需要review

@DanielSun11 DanielSun11 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@luotao1
luotao1 merged commit 99a5418 into PaddlePaddle:develop Jul 16, 2025
@co63oc
co63oc deleted the b53 branch July 16, 2025 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants