-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add MaxUnPool3D op and MaxUnPool1D op #38716
Add MaxUnPool3D op and MaxUnPool1D op #38716
Conversation
Thanks for your contribution! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
# use 2d to implenment 1d should expand padding in advance. | ||
padding = _expand_low_nd_padding(padding) | ||
|
||
if data_format not in ["NCHW"]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个判断没有意义,建议判断是否是NCL,然后再转换成NCHW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好的,我改一下
use composition of unpool2d、squeeze and unsqueeze to implement unpool1d, better to test performance. |
I have test 10000 times for paddle and torch, the results is 0.000104s(paddle) vs 0.003229s(torch), so |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
OPs
Describe
Add MaxUnPool3D op and MaxUnPool1D op.
MaxUnPool3D op:
MaxUnPool1D op: