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

something about Model.py , in which something wrong between encoder and decoder #163

Open
glorymu opened this issue Sep 11, 2020 · 2 comments

Comments

@glorymu
Copy link

glorymu commented Sep 11, 2020

model.py
def train():
line140 memory, sents1, src_masks = self.encode(xs)
line141 logits, preds, y, sents2 = self.decode(ys, memory, src_masks)

we know the memory is the last block's output of the encoder ,but author directly send the output into the decoder structure,
so every block in the decoder use the last memory as K and V .
Obviously it'wrong ,we should take every block's ouputs into a list[]. then send them to the corresponding block in the decoder as
memory.
friends, who can tell me ,am i right?

@GuoshenLi
Copy link

............. omg you are totally wrong.... the author is right.

@glorymu
Copy link
Author

glorymu commented Jul 25, 2021 via email

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