[TTS]remove pad op in static model by replace F.pad with nn.Pad1D and nn.Pad2D #3002
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 算子
对静态模型进行可视化:
移除前:
移除后: