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

pool2 = nn.MaxPool1d(conved2.shape[2], self.stride) #2

Open
tidalmelon opened this issue Feb 6, 2024 · 0 comments
Open

pool2 = nn.MaxPool1d(conved2.shape[2], self.stride) #2

tidalmelon opened this issue Feb 6, 2024 · 0 comments

Comments

@tidalmelon
Copy link

TextCNN的代码实现 池化层的stride可以不写的, 因为只会扫描一次. stride直接设置成默认值也可以.
H_out = ([seq_len-kernel_size+1] - [seq_len-kernel_size+1])/)[seq_len-kernel_size+1) +1 = 1 分子是零, stride不重要了

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