Skip to content

将paddle.signal.stft中的onesided参数默认值从True改为None #7329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 4, 2025

Conversation

Qin-sx
Copy link
Contributor

@Qin-sx Qin-sx commented Jun 20, 2025

Qin-sx added 2 commits June 19, 2025 13:28
	modified:   docs/api/paddle/signal/stft_cn.rst
	modified:   docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.stft.md
Copy link

paddle-bot bot commented Jun 20, 2025

感谢你贡献飞桨文档,文档预览构建中,Docs-New 跑完后即可预览,预览链接:http://preview-pr-7329.paddle-docs-preview.paddlepaddle.org.cn/documentation/docs/zh/api/index_cn.html
预览工具的更多说明,请参考:飞桨文档预览工具

@@ -44,7 +44,7 @@ PyTorch 相比 Paddle 支持更多其他参数,具体如下:
| center | center | 选择是否将输入信号进行补长。默认为 True。 |
| pad_mode | pad_mode | 当 center 为 True 时,确定 padding 的模式。 |
| normalized | normalized | 是否将傅里叶变换的结果乘以值为 1/sqrt(n) 的缩放系数。 |
| onesided | onesided | 当输入为实信号时,选择是否只返回傅里叶变换结果的一半的频点值,如果输入的信号或者窗函数的 数据类型是复数,则此时不能设置为 True。默认为 True。 |
| onesided | onesided | 当输入为实信号时,选择是否只返回傅里叶变换结果的一半的频点值,如果输入的信号或者窗函数的 数据类型是复数,则此时不能设置为 True。默认为 None。 |
Copy link
Collaborator

Choose a reason for hiding this comment

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

前面这句话也要一起改,把这整句话理顺一些

Copy link
Contributor Author

Choose a reason for hiding this comment

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

嗯,收到,已修改

	modified:   docs/guides/model_convert/convert_from_pytorch/api_difference/torch/torch.stft.md
Copy link
Collaborator

@zhwesky2010 zhwesky2010 left a comment

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 c6e793b into PaddlePaddle:develop Jul 4, 2025
1 of 2 checks passed
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.

3 participants