We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
if False: model.src_embed[0].lut.weight = model.tgt_embeddings[0].lut.weight model.generator.lut.weight = model.tgt_embed[0].lut.weight
Hi, I can't find tgt_embeddings in your code. Maybe it is model.src_embed[0].lut.weight = model.tgt_embed[0].lut.weight.
tgt_embeddings
model.src_embed[0].lut.weight = model.tgt_embed[0].lut.weight
And if shared Embedding, Should the code be add to make_model()? Like
def make_model(src_vocab, tgt_vocab, N=6, d_model=512, d_ff=2048, h=8, dropout=0.1): ... model = EncoderDecoder(...) model.src_embed[0].lut.weight = model.tgt_embed[0].lut.weight model.generator.lut.weight = model.tgt_embed[0].lut.weight ... return model
The text was updated successfully, but these errors were encountered:
i have the same question
Sorry, something went wrong.
It is a typo and it is a False condition. Or else you can try BPE.
False
No branches or pull requests
Hi, I can't find
tgt_embeddings
in your code. Maybe it ismodel.src_embed[0].lut.weight = model.tgt_embed[0].lut.weight
.And if shared Embedding, Should the code be add to make_model()?
Like
The text was updated successfully, but these errors were encountered: