Skip to content

test(stft): align with Paddle compat stft behavior#72

Open
youge325 wants to merge 9 commits into
PFCCLab:masterfrom
youge325:test/stft-20260531
Open

test(stft): align with Paddle compat stft behavior#72
youge325 wants to merge 9 commits into
PFCCLab:masterfrom
youge325:test/stft-20260531

Conversation

@youge325

Copy link
Copy Markdown
Contributor

Summary

新增 StftTest 跨框架对比测试,验证 Paddle compat 层 Tensor::stft 与 PyTorch Tensor::stft 的行为一致性。

Changes

  • test/ATen/ops/StftTest.cpp: 新增 8 个测试用例
    • 基础功能:BasicStft、StftWithWindow、StftNormalized
    • Shape 覆盖:SmallShape、LargeShape、OneDInput
    • Dtype 覆盖:Float64Dtype
    • API 变体:DifferentHopLength
    • 输出比较 shape/dtype + 每帧 DC 分量(避免 FFT 数值差异导致 DIFFER)
  • doc/mapping/cpp_torch_more_args/at.stft.md: 更新 compat 实现状态

Related

PaddlePaddle/Paddle#79201

Copilot AI review requested due to automatic review settings May 31, 2026 09:11

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@youge325 youge325 force-pushed the test/stft-20260531 branch from 71fc813 to bdb3112 Compare June 14, 2026 10:34
@youge325 youge325 force-pushed the test/stft-20260531 branch from bdb3112 to 2b47a0a Compare June 28, 2026 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants