PaddlePaddle / PaddlePaddle/PaConvert
torch.bartlett_window API没有对应的转换代码
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 122
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
torch.bartlett_window API没有对应的转换代码
对于如下代码:
TPDF = torch.bartlett_window(
time_size + 1, dtype=signal_scaled.dtype, device=signal_scaled.device
)
对应的转换方式应该为:
paddle.audio.functional.get_window("bartlett", win_length=time_size + 1, dtype=signal_scaled.dtype).to(signal_scaled)
但是当前版本的paconvert是不支持的:
[flitering.py:594] [Not Support] convert torch.bartlett_window to Paddle is not supported currently
希望可以添加paconvert对窗函数相关的支持。
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at filtering.py around line 594 and trace how unsupported torch APIs are reported and mapped. Add support for torch.bartlett_window using the stated Paddle equivalent, then verify that the example no longer produces the unsupported-conversion message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100