Skip to content

[Accuracy diff No.129] Fix accuracy diff for paddle.nn.functional.temporal_shift API - #326

Merged
cszdrg merged 1 commit into
PFCCLab:mainfrom
ooooo-create:accuracy_temporal_shift
Jun 23, 2025
Merged

cszdrg merged 1 commit into
PFCCLab:mainfrom
ooooo-create:accuracy_temporal_shift

Conversation

@ooooo-create

@ooooo-create ooooo-create commented Jun 22, 2025 •

Copy link
Copy Markdown
Contributor

Paddle 计算 fold 的方式是 int(c * shift_ratio) 和 int(c * shift_ratio * 2),不是 int(c * shift_ratio) 和 2 * int(c * shift_ratio)

https://github.com/PaddlePaddle/Paddle/blob/e47977d077ff204bdff0fcfefd36ee0da1d8feae/paddle/phi/kernels/cpu/temporal_shift_kernel.cc#L114-L115

修改过后 temporal_shift 的配置测试都可以通过
image

@paddle-bot

paddle-bot Bot commented Jun 22, 2025

Copy link
Copy Markdown

Thanks for your contribution!

@cszdrg
cszdrg merged commit 5b4cfcc into PFCCLab:main Jun 23, 2025
@ooooo-create
ooooo-create deleted the accuracy_temporal_shift branch September 29, 2025 09:46
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.

2 participants