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

[TTS]remove pad op in static model by replace F.pad with nn.Pad1D and nn.Pad2D #3002

Merged
merged 3 commits into from
Mar 8, 2023

Conversation

yt605155624
Copy link
Collaborator

@yt605155624 yt605155624 commented Mar 7, 2023

remove pad op in static model by replace F.pad with nn.Pad1D and nn.Pad2D
VITS 模型转 lite 模型时候缺少 pad 算子
Paddle-Lite 反馈 pad 算子比较难实现,根据内网文档,把组网代码里面的 F.pad 换成了 nn.Pad1D 和 nn.Pad2D 移除了 pad 算子, 变成了已经实现的 pad3d 算子

对静态模型进行可视化:
移除前:
dbf7ff01c1072c047332d237da4470e9

移除后:
82d5f6fa845f5b51453cbdae6a9e993c

@yt605155624 yt605155624 added this to the r1.4.0 milestone Mar 7, 2023
@yt605155624 yt605155624 requested review from lym0302 and WongLaw March 7, 2023 12:09
@yt605155624 yt605155624 self-assigned this Mar 7, 2023
@paddle-bot
Copy link

paddle-bot bot commented Mar 7, 2023

Thanks for your contribution!

@yt605155624 yt605155624 changed the title [TTS]remove pad op in static model by replace F.pad with nn.Pad1D and nn.P… [TTS]remove pad op in static model by replace F.pad with nn.Pad1D and nn.Pad2D Mar 7, 2023
@WongLaw
Copy link
Contributor

WongLaw commented Mar 8, 2023

LGTM

@WongLaw WongLaw merged commit 528ae58 into PaddlePaddle:develop Mar 8, 2023
@yt605155624 yt605155624 deleted the vits_pad branch March 22, 2023 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants