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 About The Model #8

Open
18pxrsun opened this issue Nov 8, 2019 · 1 comment
Open

Question About The Model #8

18pxrsun opened this issue Nov 8, 2019 · 1 comment

Comments

@18pxrsun
Copy link

18pxrsun commented Nov 8, 2019

Hello, I noticed that there are two layers:self. kb and self. kc is not used in your model code , so I annotated them.However, the fscore dropped after annotation. Do you know why?
self.att = SelfAttention(input_size=self.m, output_size=self.m)
self.ka = nn.Linear(in_features=self.m, out_features=1024)
self.kb = nn.Linear(in_features=self.ka.out_features, out_features=1024)
self.kc = nn.Linear(in_features=self.kb.out_features, out_features=1024)
self.kd = nn.Linear(in_features=self.ka.out_features, out_features=1)

@ok1zjf
Copy link
Owner

ok1zjf commented Aug 6, 2020

Hi, to be honest I don't know. The layers are, indeed, not used so commenting them out should not affect the
performance. I had tried it last night but the results were ok. But this test was done with different version of python, pytorch
and other libs. Perhaps there is a bug in the pytorch?

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