PaddlePaddle / PaddlePaddle/PaConvert

torch.bartlett_window API没有对应的转换代码

Open
#832 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.