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

questions about transformation of tensor shape in Conv2d #29

Open
dingli-dean opened this issue May 7, 2018 · 1 comment
Open

questions about transformation of tensor shape in Conv2d #29

dingli-dean opened this issue May 7, 2018 · 1 comment

Comments

@dingli-dean
Copy link

Hello,I have built a Conv2d instance with num_filters=6 and kernei_size=(3,3),and the input of the conv2d layer is a tensor of [1,12,12,6] with complexed value. Shape=(batch_size, h, w, channels).
Then I found that the output of this layer is of [1,10,10,12] with real value.While the expected tensor should be [1,10,10,6] with complexed value.
Does the [1,10,10,12] tensor stand for the real part and imagenary part of output tensor?If so, we can concate the [1,10,10,:6] and [1,10,10,6:] to get the final expected tensor, right?
Thank you for reading,look forward to your reply.

@dingli-dean
Copy link
Author

Then I split the [1,12,12,6] complexed-value tensor into [1,12,12,12] real-valued tensor,and take it as imput,using the same conv2d layer mentioned above.Finally I got a [1,10,10,12] tensor with real value.
Does the [1,10,10,12] tensor stand for the real part and imagenary part of output tensor?If so, we can concate the [1,10,10,:6] and [1,10,10,6:] to get the final expected tensor, right?

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