-
Notifications
You must be signed in to change notification settings - Fork 151
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 ConvTranspose2d #7
Comments
I think it's feasible and easy to convert
|
Hi, longcw. Thanks for your quick reply. Yesterday, I transferred "conv_transpose2d" from pytorch to caffe as what you said above. But I found that there is a parameter "output_padding" in "conv_transpose2d". That optional parameter will add specific padding to the result of deconvolution, so that the user can get a specific output shape. But the Decovolution layer in caffe has no such parameter. So it's a problem now for me. The code above can convert a tensor with shape(batch,channel,width,height) to shape(batch,channel,widthx2,heightx2). if we write a caffe layer with above parameter we get (batch,channel,width,height) to (batch,channel,widthx2-1.heightx2-1) In conclusion, I think the deconv operation in pytorch can't be perfectly converted to caffe. Am I right? |
So the only difference is the |
Could you please add nn.ConvTranspose2d into the transformation? Because the ConvTranspose2d operation is now very common in neural networks.
The text was updated successfully, but these errors were encountered: