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

ConvolutionTranspose2D outputs normally when num_filters is tuple and dilation is 0 #3883

Open
cheyennee opened this issue Dec 8, 2023 · 0 comments

Comments

@cheyennee
Copy link

According to doc, the num_filters should be int and dilation should be a tuple. And in tensorflow and pytorch, the dilation should be greater than 0, but in following code, when dilation is 0, ConvolutionTranspose2D outputs normally.

f = C.layers.ConvolutionTranspose2D((3, 4), (1, 1), activation=C.relu, dilation=0)
x = C.input_variable((3, 480, 640))
h = f(x)
print(h.shape)
print(f.W.shape)
# (1, 1, 482, 643)
# (-1, 1, 1, 3, 4)
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

No branches or pull requests

1 participant