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

fixed params bug in PReLU #34

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

fixed params bug in PReLU #34

wants to merge 2 commits into from

Conversation

LitLeo
Copy link

@LitLeo LitLeo commented Mar 16, 2022

解决了PReLU层 slope参数的维度转换错误。
对应的issue:#21
pytorch 转 onnx 之前也有这个错误,fixed详见 pytorch/pytorch#21330

原先只支持PReLU层的输入维度为固定4维,即将slope的维度设置为[dim, 1, 1]
修改后,支持输入为变化维度。

修改思路为在修改param shape时,将input_shape作为参数输入,并根据input_shape决定slope的维度。

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.

1 participant