We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f857eb0 + 3a0c814 commit 228a314Copy full SHA for 228a314
main.py
@@ -134,7 +134,7 @@ def main():
134
emb[vocab.getIndex(word)] = glove_emb[glove_vocab.getIndex(word)]
135
torch.save(emb, emb_file)
136
# plug these into embedding matrix inside model
137
- model.emb.weight.copy_(emb)
+ model.emb.weight.data.copy_(emb)
138
139
model.to(device), criterion.to(device)
140
if args.optim == 'adam':
0 commit comments