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

Bug in F.maxpool_1d? #37

Open
XintianHan opened this issue Mar 13, 2022 · 0 comments
Open

Bug in F.maxpool_1d? #37

XintianHan opened this issue Mar 13, 2022 · 0 comments

Comments

@XintianHan
Copy link

It seems that there is a bug here

identity = F.max_pool1d(identity, self.stride)

F.maxpool_1d takes kernel_size as the second parameter and stride as the third parameter. If you want to specify the stride as it is, it should be something like F.max_pool1d(identity, kernel_size=2, stride=2, padding=1) Otherwise, it may ignore the last dimension of the identity. And this may cause a bug when identity has odd number of dimensions.

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