Skip to content

[release/3.3][0 SIZE] Add zero-size input validation for WarpCTC kernel#78435

Merged
sneaxiy merged 1 commit intoPaddlePaddle:release/3.3from
ShigureNyako:cherry-pick/78316/release/3.3
Apr 1, 2026
Merged

[release/3.3][0 SIZE] Add zero-size input validation for WarpCTC kernel#78435
sneaxiy merged 1 commit intoPaddlePaddle:release/3.3from
ShigureNyako:cherry-pick/78316/release/3.3

Conversation

@ShigureNyako
Copy link
Copy Markdown
Contributor

PR Category

Execute Infrastructure

PR Types

Improvements

Description

针对 ctc_loss 的 0 Size 问题做出如下改动:

paddle/phi/kernels/impl/warpctc_kernel_impl.h

  • 新增对 labelslogits_lengthlabels_length 三个输入的 batch_size 校验

test/legacy_test/test_warpctc_op.py

  • 新增 test_dygraph_zero_size_with_padding 单测用例

是否引起精度变化


Cherry-pick of #78316 (authored by @DrRyanHuang) to release/3.3.

devPR:#78316

@paddle-bot
Copy link
Copy Markdown

paddle-bot bot commented Mar 23, 2026

你的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 23, 2026
@DrRyanHuang DrRyanHuang requested review from SigureMo and wanghuancoder and removed request for SigureMo March 23, 2026 09:03
@SigureMo SigureMo added Agent and removed contributor External developers labels Mar 27, 2026
@paddle-bot paddle-bot bot added the contributor External developers label Mar 27, 2026
@SigureMo SigureMo removed the contributor External developers label Mar 30, 2026
Copy link
Copy Markdown
Contributor

@wanghuancoder wanghuancoder left a comment

Choose a reason for hiding this comment

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

LGTM

@sneaxiy sneaxiy merged commit 879657d into PaddlePaddle:release/3.3 Apr 1, 2026
90 of 98 checks passed
@SigureMo SigureMo deleted the cherry-pick/78316/release/3.3 branch April 1, 2026 06:32
ShigureNyako

This comment was marked as outdated.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants