Skip to content
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

【PIR API adaptor No.270】Migrate LogMelSpectrogram to pir #60313

Closed
wants to merge 1 commit into from

Conversation

0x45f
Copy link
Contributor

@0x45f 0x45f commented Dec 25, 2023

PR types

Others

PR changes

Others

Description

PIR API 推全升级 * #58067

尝试迁移LogMelSpectrogram到PIR下,之前的单测中没有静态图相关单测,添加静态图单测后发现在老静态图下LogMelSpectrogram这个API就无法正常组网,所以这个API之前应该只会在动态图下用到

下面的case可以体现,该API无法在老静态图下正常组网,但是动态图下可以组网

import paddle
import re
from paddle import base

paddle.enable_static()

sr = 16000
window_str = "hamming"
n_fft = 128
hop_length = 128
n_mels = 64
fmin = 0.0
layer = paddle.audio.features.LogMelSpectrogram(
    sr=sr,
    n_fft=n_fft,
    hop_length=hop_length,
    window=window_str,
    center=True,
    n_mels=n_mels,
    f_min=fmin,
    top_db=None,
    dtype='float32',
)

print(layer)

报错信息:
image

Copy link

paddle-bot bot commented Dec 25, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@0x45f 0x45f changed the title [PIR]Migrate LogMelSpectrogram to pir 【PIR API adaptor No.270】Migrate LogMelSpectrogram to pir Dec 26, 2023
Copy link

paddle-ci-bot bot commented Jan 4, 2024

Sorry to inform you that bd31ec5's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@0x45f 0x45f closed this Jan 23, 2024
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.

None yet

1 participant