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

Question on Chapter 7.4.4 pooling layger output reshape #70

Open
Hustwireless opened this issue Mar 4, 2023 · 0 comments
Open

Question on Chapter 7.4.4 pooling layger output reshape #70

Hustwireless opened this issue Mar 4, 2023 · 0 comments

Comments

@Hustwireless
Copy link

I've got a question on the following line of code. According to the illustration of the book, I think this line

out = out.reshape(N, out_h, out_w, C).transpose(0, 3, 1, 2)

perhaps should be

out = out.reshape(N, C, out_h, out_w)

because the tensor here seems to have a different struture from the convolution computation. However, I'm not quite sure about this, please do not hesitate to correct me if I'm wrong.

Thanks in advance!

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