-
Notifications
You must be signed in to change notification settings - Fork 24.3k
Signature should be extended for torch.hamming_window()
#146590
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
Labels
module: python frontend
For issues relating to PyTorch's Python frontend
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Comments
Is the issue that hamming window actually does not have a default for periodic? pytorch/aten/src/ATen/native/native_functions.yaml Lines 2946 to 2964 in 0c81b39
Seems actionable to fix the docs then |
Maybe it is so in my opinion. |
And the signatures inside may look confusing. |
@mikaylagawarecki PR opened here, thanks for noting! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
module: python frontend
For issues relating to PyTorch's Python frontend
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Uh oh!
There was an error while loading. Please reload this page.
🐛 Describe the bug
Seen from #145371, I notice some similar situations in
torch.hamming_window()
:pytorch/torch/_torch_docs.py
Lines 12380 to 12381 in 4a545eb
Minified Repro
Output
These four combinations are actually valid, but except.
Suggestions
I suggest that the behavior of unspecified
periodic
,alpha
,beta
and specifiedperiodic=True
,alpha=0.54
,beta=0.46
to be identical. That is, as a fix, the signatureought to be extended with
periodic=True
,alpha=0.54
andbeta=0.46
,with other three signatures been merged to this signature.
Versions
pytorch==2.5.0
torchvision==0.20.0
torchaudio==2.5.0
pytorch-cuda=12.1
cc @albanD
The text was updated successfully, but these errors were encountered: