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

How to deal with when output channel number C‘ are not equal to input channel number C? #13

Open
wenhangyu opened this issue Oct 12, 2020 · 1 comment

Comments

@wenhangyu
Copy link

when output channel number C‘ are not equal to input channel number C,there is different channel numbers between identity with self.k2(x). So how to deal with this problem? The code as follows:

out = torch.sigmoid(torch.add(identity, F.interpolate(self.k2(x), identity.size()[2:])))

@backseason
Copy link
Collaborator

You may 1) set the output and input channels of self.k2() to be identical, or 2) replace the identity operation with a simple conv1x1 layer.

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

2 participants